1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-15 10:48:33 +01:00

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

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);
}