watch out for missing a name

This commit is contained in:
Dana Jansens 2003-04-15 21:25:21 +00:00
parent 9bd740cf71
commit 1c87358858

View file

@ -707,8 +707,10 @@ void action_exit(union ActionData *data)
void action_showmenu(union ActionData *data)
{
menu_show(data->showmenu.name, data->showmenu.x, data->showmenu.y,
data->showmenu.c);
if (data->showmenu.name) {
menu_show(data->showmenu.name, data->showmenu.x, data->showmenu.y,
data->showmenu.c);
}
}
static void popup_cycle(Client *c, gboolean hide)