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:
@@ -900,7 +900,7 @@ createPanel(_Panel *p)
|
|||||||
|
|
||||||
pos.y = WMAX(pos.y - 100, 0);
|
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
|
static void
|
||||||
showMenus(_Panel *panel)
|
showMenus(_Panel *panel)
|
||||||
{
|
{
|
||||||
WEditMenuUnhide(panel->menu);
|
if( panel->menu ) WEditMenuUnhide(panel->menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
hideMenus(_Panel *panel)
|
hideMenus(_Panel *panel)
|
||||||
{
|
{
|
||||||
WEditMenuHide(panel->menu);
|
if( panel->menu ) WEditMenuHide(panel->menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user