Only add separators when a section actually ends
This commit is contained in:
parent
064999cb2a
commit
45e9d09eab
@ -740,8 +740,6 @@ append_items_from_model (GtkMenuShell *menu,
|
||||
append_items_from_model (menu, m, group, need_separator, label);
|
||||
g_object_unref (m);
|
||||
g_free (label);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (*need_separator)
|
||||
{
|
||||
@ -751,6 +749,9 @@ append_items_from_model (GtkMenuShell *menu,
|
||||
*need_separator = FALSE;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
menuitem = create_menuitem_from_model (model, i, group);
|
||||
|
||||
if ((m = g_menu_model_get_item_link (model, i, G_MENU_LINK_SUBMENU)))
|
||||
|
Loading…
Reference in New Issue
Block a user