From eae3a84ab5e50b0c8773e3cbb68c63579d37a594 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 20 Dec 2018 23:18:10 +0100 Subject: [PATCH] timerlist: fix yellow on/off behaviour when back item is selected Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/551f9963a9a5e9d7953e8f0315d85083e3353183 Author: vanhofen Date: 2018-12-20 (Thu, 20 Dec 2018) Origin message was: ------------------ - timerlist: fix yellow on/off behaviour when back item is selected ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/timerlist.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index f11b80d60..10ab25d32 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();