mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
neutrino: do not crash when leaving an empty menu with "left"
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1031 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -535,7 +535,8 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case (CRCInput::RC_left):
|
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;
|
msg = CRCInput::RC_timeout;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user