diff options
Diffstat (limited to 'src/qmmpui/generalhandler.cpp')
| -rw-r--r-- | src/qmmpui/generalhandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qmmpui/generalhandler.cpp b/src/qmmpui/generalhandler.cpp index d46c0e0e5..f047745a1 100644 --- a/src/qmmpui/generalhandler.cpp +++ b/src/qmmpui/generalhandler.cpp @@ -110,6 +110,7 @@ void GeneralHandler::executeCommand(const QString &opt_str) void GeneralHandler::addAction(QAction *action, MenuType type) { + connect(action, SIGNAL(destroyed (QObject *)), SLOT(removeAction(QObject*))); switch ((int) type) { case TOOLS_MENU: @@ -175,3 +176,7 @@ GeneralHandler* GeneralHandler::instance() return m_instance; } +void GeneralHandler::removeAction(QObject *action) +{ + removeAction((QAction *) action); +} |
