diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/status-service.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/status-service.c b/src/status-service.c index 14d8a34..c35395e 100644 --- a/src/status-service.c +++ b/src/status-service.c @@ -165,10 +165,12 @@ build_user_item (DbusmenuMenuitem * root) while (*walker != '\0' && *walker != ',') { walker++; } *walker = '\0'; - DbusmenuMenuitem * useritem = dbusmenu_menuitem_new(); - dbusmenu_menuitem_property_set(useritem, "label", name); - dbusmenu_menuitem_property_set(useritem, "sensitive", "false"); - dbusmenu_menuitem_child_append(root, useritem); + if (name[0] != '\0') { + DbusmenuMenuitem * useritem = dbusmenu_menuitem_new(); + dbusmenu_menuitem_property_set(useritem, "label", name); + dbusmenu_menuitem_property_set(useritem, "sensitive", "false"); + dbusmenu_menuitem_child_append(root, useritem); + } g_free(name); } else { |