diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-07-05 07:09:55 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-07-05 07:09:55 +0000 |
| commit | 2cf6844c19e2bc645de59d6c54ef8cbf4a5beaef (patch) | |
| tree | a2b183b0a92e406a67b7dc2ec0521a01aa150776 /src | |
| parent | 8e4b264e1ab4eda013e9d432215f397866fca8bb (diff) | |
| download | qmmp-2cf6844c19e2bc645de59d6c54ef8cbf4a5beaef.tar.gz qmmp-2cf6844c19e2bc645de59d6c54ef8cbf4a5beaef.tar.bz2 qmmp-2cf6844c19e2bc645de59d6c54ef8cbf4a5beaef.zip | |
restrict maximum column number
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5223 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/Ui/skinned/playlistheader.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/Ui/skinned/playlistheader.cpp b/src/plugins/Ui/skinned/playlistheader.cpp index a3d495dee..d7427e2b8 100644 --- a/src/plugins/Ui/skinned/playlistheader.cpp +++ b/src/plugins/Ui/skinned/playlistheader.cpp @@ -534,7 +534,7 @@ void PlayListHeader::contextMenuEvent(QContextMenuEvent *e) foreach (QAction *action, m_menu->actions()) { if(m_menu->actions().at(0) == action) - action->setVisible(true); + action->setVisible(m_model->count() < MAX_COLUMNS); else if(m_menu->actions().at(1) == action) action->setVisible(true); else @@ -546,7 +546,9 @@ void PlayListHeader::contextMenuEvent(QContextMenuEvent *e) { foreach (QAction *action, m_menu->actions()) { - if(action != m_menu->actions().first()) + if(action == m_menu->actions().first()) + action->setVisible(m_model->count() < MAX_COLUMNS); + else action->setVisible(false); } } |
