Revert "CMenuWidget: simplify menu_left_exit code, add missing break"

This reverts commit 1582977133.


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:
Jacek Jendrzej
2017-09-27 11:11:12 +02:00
parent 219ae6b8d4
commit 2c554b1ae7

View File

@@ -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):
{