[Xfce4-commits] [xfce/xfce4-appfinder] 01/01: Ignore menu items without name (Bug #14655)
noreply at xfce.org
noreply at xfce.org
Fri Sep 7 03:58:08 CEST 2018
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-appfinder.
commit 8df60d05073ec25b0ac4fd384ad34d5eb2d49459
Author: Mikhail Efremov <sem at altlinux.org>
Date: Tue Sep 4 18:53:43 2018 +0300
Ignore menu items without name (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);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list