mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-29 09:52:29 +01:00
fixed bug in builtin xpm loader
fixed crash bug in menu editor
This commit is contained in:
@@ -1439,7 +1439,7 @@ buildSubmenu(_Panel *panel, proplist_t pl)
|
||||
char *title;
|
||||
proplist_t tp, bp;
|
||||
int i;
|
||||
|
||||
|
||||
tp = PLGetArrayElement(pl, 0);
|
||||
title = PLGetString(tp);
|
||||
|
||||
@@ -1455,7 +1455,7 @@ buildSubmenu(_Panel *panel, proplist_t pl)
|
||||
|
||||
title = PLGetString(tp);
|
||||
|
||||
if (PLIsArray(bp)) { /* it's a submenu */
|
||||
if (!bp || PLIsArray(bp)) { /* it's a submenu */
|
||||
WEditMenu *submenu;
|
||||
|
||||
submenu = buildSubmenu(panel, pi);
|
||||
|
||||
Reference in New Issue
Block a user