mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +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
Origin commit data
------------------
Branch: ni/coolstream
Commit: b978594b1a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-01-17 (Mon, 17 Jan 2011)
------------------
This commit was generated by Migit
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