mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 09:20:34 +02:00
fixed crash bug with empty menus
This commit is contained in:
1 parent
72150b1da7
commit
cc9abd6e7e
1 file changed
+3
-3
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user