From 393294faaf9b8bd1780778e9355e502a52822843 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Tue, 13 Aug 2013 18:49:49 +0200 Subject: desktop menu: don't export an item if the name is '' --- src/im-desktop-menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/im-desktop-menu.c') diff --git a/src/im-desktop-menu.c b/src/im-desktop-menu.c index 9dcd6c1..7a9b9bf 100644 --- a/src/im-desktop-menu.c +++ b/src/im-desktop-menu.c @@ -113,7 +113,7 @@ im_desktop_menu_source_added (ImApplicationList *applist, action = g_strconcat ("src.", source_id, NULL); item = g_menu_item_new (label, NULL); g_menu_item_set_attribute (item, "x-canonical-type", "s", "com.canonical.indicator.messages.source"); - if (icon) + if (icon && *icon) g_menu_item_set_attribute (item, "icon", "s", icon); g_menu_append_item (source_section, item); -- cgit v1.2.3