From 7be2a3950c33eae9a29537a7a75fee65f24c4c0d Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 20 Dec 2018 23:18:10 +0100 Subject: [PATCH] - timerlist: fix yellow on/off behaviour when back item is selected Signed-off-by: Thilo Graf --- src/gui/timerlist.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index 55f73a944..7af577c72 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -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(item); std::vector::iterator it = g_settings.timer_remotebox_ip.begin();