From ee5d593d55fb994611a8251adc55f0c9d2da9bdc Mon Sep 17 00:00:00 2001 From: TangoCash Date: Fri, 21 Oct 2016 10:47:38 +0200 Subject: [PATCH] fix menue Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/9b0137377a02a9dc4a7f01ec7ed534276962b01b Author: TangoCash Date: 2016-10-21 (Fri, 21 Oct 2016) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/timerlist.cpp | 25 +++++++++---------------- src/gui/timerlist.h | 1 + 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index d4ebfd2c6..01379289f 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -301,23 +301,23 @@ int CTimerList::exec(CMenuTarget* parent, const std::string & actionKey) remotebox_NetworkIP.hide(); changed = true; } - return menu_return::RETURN_EXIT; + return menu_return::RETURN_REPAINT; } if(actionKey == "del_ip") { - selected = remboxmenu->getSelected(); - if (selected >= item_offset) { - remboxmenu->removeItem(selected); + bselected = remboxmenu->getSelected(); + if (bselected >= item_offset) { + remboxmenu->removeItem(bselected); remboxmenu->hide(); - selected = remboxmenu->getSelected(); + bselected = remboxmenu->getSelected(); changed = true; } - return menu_return::RETURN_EXIT; + return menu_return::RETURN_REPAINT; } if(actionKey == "cha_ip") { - selected = remboxmenu->getSelected(); - CMenuItem* item = remboxmenu->getItem(selected); + bselected = remboxmenu->getSelected(); + CMenuItem* item = remboxmenu->getItem(bselected); CMenuForwarder *f = static_cast(item); std::string remoteip = f->getName(); CIPInput remotebox_NetworkIP(LOCALE_REMOTEBOX_IP , &remoteip); @@ -326,7 +326,7 @@ int CTimerList::exec(CMenuTarget* parent, const std::string & actionKey) remotebox_NetworkIP.hide(); changed = true; } - return menu_return::RETURN_EXIT; + return menu_return::RETURN_REPAINT; } if (strcmp(key, "modifytimer") == 0) @@ -887,10 +887,8 @@ int CTimerList::show() } else if (msg==CRCInput::RC_setup) { - hide(); enterRemoteBox(); update=true; - paint(); } else if (msg==CRCInput::RC_yellow) { @@ -905,11 +903,6 @@ int CTimerList::show() loop=false; } #endif - else if (msg==CRCInput::RC_setup) - { - res=menu_return::RETURN_EXIT_ALL; - loop=false; - } else if ( msg == CRCInput::RC_help || msg == CRCInput::RC_info) { CTimerd::responseGetTimer* timer=&timerlist[selected]; diff --git a/src/gui/timerlist.h b/src/gui/timerlist.h index 8d31b84e9..3ed0af33c 100644 --- a/src/gui/timerlist.h +++ b/src/gui/timerlist.h @@ -93,6 +93,7 @@ class CTimerList : public CMenuTarget, public CListHelpers int rem_pre,rem_post; int item_offset; bool changed; + int bselected; CMenuWidget *remboxmenu; public: