aboutsummaryrefslogtreecommitdiff
path: root/module/menuproxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'module/menuproxy.cc')
-rw-r--r--module/menuproxy.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/module/menuproxy.cc b/module/menuproxy.cc
index 01a2b6f..d2a757d 100644
--- a/module/menuproxy.cc
+++ b/module/menuproxy.cc
@@ -202,6 +202,11 @@ void MenuProxy::removeMenu(QMenu *menu)
GtkMenu *g_parent = GTK_MENU(gtk_widget_get_parent(g_item));
Q_ASSERT(g_parent);
+ // Does it contain any actions? Should remove those now
+ foreach (QAction *action, menu->actions()) {
+ removeAction(action);
+ }
+
menu->removeEventFilter(this);
gtk_widget_destroy(GTK_WIDGET(g_menu));