mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
CMenuWidget: simplify menu_left_exit code, add missing break
This commit is contained in:
committed by
Jacek Jendrzej
parent
468fd6a3c7
commit
aa0863f0c3
@@ -928,16 +928,12 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case (CRCInput::RC_left):
|
case (CRCInput::RC_left):
|
||||||
{
|
if (hasItem() && selected > -1 && (int)items.size() > selected) {
|
||||||
if(hasItem() && selected > -1 && (int)items.size() > selected) {
|
CMenuItem* itemX = items[selected];
|
||||||
CMenuItem* itemX = items[selected];
|
if (!itemX->isMenueOptionChooser() && g_settings.menu_left_exit)
|
||||||
if (!itemX->isMenueOptionChooser()) {
|
msg = CRCInput::RC_timeout;
|
||||||
if (g_settings.menu_left_exit)
|
|
||||||
msg = CRCInput::RC_timeout;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case (CRCInput::RC_right):
|
case (CRCInput::RC_right):
|
||||||
case (CRCInput::RC_ok):
|
case (CRCInput::RC_ok):
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user