Commit 8a5cf505 authored by Gaël Bonithon's avatar Gaël Bonithon
Browse files

launcher: Check for menu item initialization

A necessary complement to 3d0f9720 in
certain situations.
parent 587a113c
Pipeline #8206 passed with stages
in 5 minutes
......@@ -1914,7 +1914,7 @@ launcher_plugin_button_update_action_menu (LauncherPlugin *plugin)
{
gtk_widget_destroy (GTK_WIDGET (plugin->action_menu));
}
else if ((list = garcon_menu_item_get_actions (item)) != NULL)
else if (item != NULL && (list = garcon_menu_item_get_actions (item)) != NULL)
{
g_list_free (list);
plugin->action_menu = GTK_WIDGET (garcon_gtk_menu_get_desktop_actions_menu (item));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment