aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/messages-service.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 515e8b3..88da0e0 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -794,15 +794,16 @@ menushell_foreach_cb (DbusmenuMenuitem * data_mi, gpointer data_ms) {
if (msl->found) return;
- msl->position++;
-
if (!IS_APP_MENU_ITEM(data_mi)) {
+ msl->position++;
return;
}
AppMenuItem * appmenu = APP_MENU_ITEM(data_mi);
if (!g_strcmp0(INDICATE_LISTENER_SERVER_DBUS_NAME((IndicateListenerServer*)msl->server), INDICATE_LISTENER_SERVER_DBUS_NAME(app_menu_item_get_server(appmenu)))) {
msl->found = TRUE;
+ } else {
+ msl->position++;
}
return;