Mercurial > hg > svapp
diff framework/MainWindowBase.cpp @ 392:75af0658be84
Connect the signal only once!
author | Chris Cannam |
---|---|
date | Wed, 13 Aug 2014 11:32:35 +0100 |
parents | 9e31759254fe |
children | ff43500426da |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Wed Aug 13 10:11:25 2014 +0100 +++ b/framework/MainWindowBase.cpp Wed Aug 13 11:32:35 2014 +0100 @@ -336,11 +336,10 @@ if (!m_menuShortcutMapper) { m_menuShortcutMapper = new QSignalMapper(this); + connect(m_menuShortcutMapper, SIGNAL(mapped(QObject *)), + this, SLOT(menuActionMapperInvoked(QObject *))); } - connect(m_menuShortcutMapper, SIGNAL(mapped(QObject *)), - this, SLOT(menuActionMapperInvoked(QObject *))); - foreach (QAction *a, menu->actions()) { QWidgetList ww = a->associatedWidgets(); bool hasButton = false;