# HG changeset patch # User Chris Cannam # Date 1407925955 -3600 # Node ID 75af0658be8487478a42375fb1d056238aac24d9 # Parent 9e31759254fea142072b43789db1a615d9f715f8 Connect the signal only once! diff -r 9e31759254fe -r 75af0658be84 framework/MainWindowBase.cpp --- 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;