1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 14:42:29 +01:00

wmmenugen: Sort menu entries with no category into 'Other'.

This commit is contained in:
Doug Torrance
2017-07-06 19:48:16 -04:00
committed by Carlos R. Mafra
parent adc1687f98
commit ff865c31f0

View File

@@ -178,6 +178,9 @@ void parse_xdg(const char *file, cb_add_menu_entry *addWMMenuEntryCallback)
getMenuHierarchyFor(&xdg->Category); getMenuHierarchyFor(&xdg->Category);
} }
if (xdg->Category == NULL)
xdg->Category = wstrdup(_("Other"));
wfree(key); wfree(key);
key = NULL; key = NULL;
} }