]> Dogcows Code - chaz/openbox/blobdiff - openbox/event.c
don't crash when you press enter with nothing selected in the menu
[chaz/openbox] / openbox / event.c
index e03c8203cd66e62ffdc49a35ae69b8a83bd49dc8..3bfca98e6e28ca344ab1c5296de6b58d18ad1497 100644 (file)
@@ -1566,7 +1566,7 @@ static gboolean event_handle_menu_keyboard(XEvent *ev)
            Control-Enter runs it without closing the menu. */
         if (frame->child)
             menu_frame_select_next(frame->child);
-        else
+        else if (frame->selected)
             menu_entry_frame_execute(frame->selected, state, ev->xkey.time);
     }
 
This page took 0.021615 seconds and 4 git commands to generate.