1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-25 16:55:47 +01:00

fixed bug in builtin xpm loader

fixed crash bug in menu editor
This commit is contained in:
kojima
2001-01-06 22:38:07 +00:00
parent bb7314ddac
commit e314838447
8 changed files with 60 additions and 13 deletions

View File

@@ -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);

View File

@@ -410,6 +410,9 @@ savePanelData(Panel *panel)
static void
changeSection(WMWidget *self, void *data)
{
if (WPrefs.currentPanel == data)
return;
if (WPrefs.banner) {
WMDestroyWidget(WPrefs.banner);
WPrefs.banner = NULL;