mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
Revert "CMenuWidget: simplify menu_left_exit code, add missing break"
This reverts commit1582977133
. Origin commit data ------------------ Branch: ni/coolstream Commit:1deaebf1cf
Author: Jacek Jendrzej <overx300@gmail.com> Date: 2017-09-27 (Wed, 27 Sep 2017) ------------------ This commit was generated by Migit
This commit is contained in:
@@ -928,12 +928,16 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
break;
|
||||
}
|
||||
case (CRCInput::RC_left):
|
||||
if (hasItem() && selected > -1 && (int)items.size() > selected) {
|
||||
CMenuItem* itemX = items[selected];
|
||||
if (!itemX->isMenueOptionChooser() && g_settings.menu_left_exit)
|
||||
msg = CRCInput::RC_timeout;
|
||||
{
|
||||
if(hasItem() && selected > -1 && (int)items.size() > selected) {
|
||||
CMenuItem* itemX = items[selected];
|
||||
if (!itemX->isMenueOptionChooser()) {
|
||||
if (g_settings.menu_left_exit)
|
||||
msg = CRCInput::RC_timeout;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case (CRCInput::RC_right):
|
||||
case (CRCInput::RC_ok):
|
||||
{
|
||||
|
Reference in New Issue
Block a user