aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/messages-service.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index da5b49c..c56016e 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -623,11 +623,17 @@ server_shortcuts_changed (AppMenuItem * appitem, gpointer data)
}
appitemfound = TRUE;
+ if (children->data == appitem) {
+ children = g_list_next(children);
+ continue;
+ }
+
if (!DBUSMENU_IS_MENUITEM_PROXY(children->data)) {
break;
}
removelist = g_list_prepend(removelist, children->data);
+ children = g_list_next(children);
}
GList * removeitem;