From d21a339995a97d343989d04ef4d152d4858538ec Mon Sep 17 00:00:00 2001 From: Mikhail Efremov Date: Tue, 4 Sep 2018 18:53:43 +0300 Subject: [PATCH] Ignore menu items without name Fixes Xfce bug #14655. --- src/appfinder-model.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/appfinder-model.c b/src/appfinder-model.c index 2766b5c..c77e38d 100644 --- a/src/appfinder-model.c +++ b/src/appfinder-model.c @@ -1486,6 +1486,10 @@ xfce_appfinder_model_collect_item (const gchar *desktop_id, item = g_hash_table_lookup (context->desktop_ids, desktop_id); if (G_LIKELY (item == NULL)) { + /* ignore menu items without name */ + if (garcon_menu_item_get_name (menu_item) == NULL) + return; + item = xfce_appfinder_model_item_new (menu_item); item->categories = g_ptr_array_new_with_free_func (g_object_unref); -- 2.17.1