1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 05:48:01 +01:00

fixed crash bug with empty menus

This commit is contained in:
kojima
2001-11-14 13:18:26 +00:00
parent 72150b1da7
commit cc9abd6e7e

View File

@@ -900,7 +900,7 @@ createPanel(_Panel *p)
pos.y = WMAX(pos.y - 100, 0);
WEditMenuShowAt(panel->menu, pos.x, pos.y);
if( panel->menu ) WEditMenuShowAt(panel->menu, pos.x, pos.y);
}
}
@@ -1807,14 +1807,14 @@ storeData(_Panel *panel)
static void
showMenus(_Panel *panel)
{
WEditMenuUnhide(panel->menu);
if( panel->menu ) WEditMenuUnhide(panel->menu);
}
static void
hideMenus(_Panel *panel)
{
WEditMenuHide(panel->menu);
if( panel->menu ) WEditMenuHide(panel->menu);
}