Mercurial > hg > sonic-visualiser
changeset 345:e0c7ee104eb4
* Fix duplicate entries on right-button Layer menu when more than one audio
file is loaded
author | Chris Cannam |
---|---|
date | Tue, 15 Jun 2010 10:54:15 +0000 (2010-06-15) |
parents | 1fc7ee4ff506 |
children | 92c09ced49ed |
files | main/MainWindow.cpp |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/main/MainWindow.cpp Wed May 05 16:21:44 2010 +0000 +++ b/main/MainWindow.cpp Tue Jun 15 10:54:15 2010 +0000 @@ -331,14 +331,6 @@ // m_rightButtonMenu->setTearOffEnabled(true); } - if (m_rightButtonLayerMenu) { - m_rightButtonLayerMenu->clear(); - } else { - m_rightButtonLayerMenu = m_rightButtonMenu->addMenu(tr("&Layer")); - m_rightButtonLayerMenu->setTearOffEnabled(true); - m_rightButtonMenu->addSeparator(); - } - if (m_rightButtonTransformsMenu) { m_rightButtonTransformsMenu->clear(); } else { @@ -906,6 +898,14 @@ m_layerMenu->setTearOffEnabled(true); } + if (m_rightButtonLayerMenu) { + m_rightButtonLayerMenu->clear(); + } else { + m_rightButtonLayerMenu = m_rightButtonMenu->addMenu(tr("&Layer")); + m_rightButtonLayerMenu->setTearOffEnabled(true); + m_rightButtonMenu->addSeparator(); + } + QMenu *menu = m_paneMenu; IconLoader il;