- timerlist: fix yellow on/off behaviour when back item is selected

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2018-12-20 23:18:10 +01:00
committed by Thilo Graf
parent 6d53bf7967
commit 7be2a3950c

View File

@@ -363,6 +363,8 @@ int CTimerList::exec(CMenuTarget* parent, const std::string & actionKey)
if (actionKey == "onoff_ip")
{
bselected = remboxmenu->getSelected();
if (bselected < item_offset)
return menu_return::RETURN_NONE;
CMenuItem* item = remboxmenu->getItem(bselected);
CMenuForwarder *f = static_cast<CMenuForwarder*>(item);
std::vector<timer_remotebox_item>::iterator it = g_settings.timer_remotebox_ip.begin();