diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 3f194955e..950e3e1df 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -535,7 +535,8 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &) } break; case (CRCInput::RC_left): - if(( hasItem() && !(items[selected]->can_arrow)) || g_settings.menu_left_exit) { + if ((hasItem() && (selected < 0 || !items[selected]->can_arrow)) || + g_settings.menu_left_exit) { msg = CRCInput::RC_timeout; break; }