don't crash when you press enter with nothing selected in the menu
This commit is contained in:
parent
7f9080c6a0
commit
47744e03c3
1 changed files with 1 additions and 1 deletions
|
@ -1566,7 +1566,7 @@ static gboolean event_handle_menu_keyboard(XEvent *ev)
|
||||||
Control-Enter runs it without closing the menu. */
|
Control-Enter runs it without closing the menu. */
|
||||||
if (frame->child)
|
if (frame->child)
|
||||||
menu_frame_select_next(frame->child);
|
menu_frame_select_next(frame->child);
|
||||||
else
|
else if (frame->selected)
|
||||||
menu_entry_frame_execute(frame->selected, state, ev->xkey.time);
|
menu_entry_frame_execute(frame->selected, state, ev->xkey.time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue