Enforce a minimum size for playlist columns when they're shown. This prevents 0-width columns appearing for whatever reason. Fixes issue #85

This commit is contained in:
David Sansome 2010-03-22 12:13:04 +00:00
parent 1879b6f858
commit 91b2162d25
1 changed files with 5 additions and 0 deletions

View File

@ -58,4 +58,9 @@ void PlaylistHeader::HideCurrent() {
void PlaylistHeader::ToggleVisible(int section) {
setSectionHidden(section, !isSectionHidden(section));
static const int kMinSectionSize = 80;
if (!isSectionHidden(section) && sectionSize(section) < kMinSectionSize)
resizeSection(section, kMinSectionSize);
}