From 2c912b4b54deeec32082b68b73f0bfd86eebed73 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 22 Jul 2018 19:59:12 +0200 Subject: [PATCH] timerlist: fix display of gui-rests when adding a new remotebox Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/4d5ab9755faca11f0c726948e066cb728a77be4a Author: vanhofen Date: 2018-07-22 (Sun, 22 Jul 2018) Origin message was: ------------------ - timerlist: fix display of gui-rests when adding a new remotebox ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/timerlist.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index 79bf1cfb7..836479cf6 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -324,8 +324,10 @@ int CTimerList::exec(CMenuTarget* parent, const std::string & actionKey) rbsetup->enableSaveScreen(true); if ((rbsetup->exec(NULL,"") == true) && (!rbaddress.empty())) { - remboxmenu->addItem(new CMenuForwarder(rbname, true, NULL, this, "cha_ip")); remboxmenu->hide(); + remboxmenu->enableSaveScreen(false); + remboxmenu->addItem(new CMenuForwarder(rbname, true, NULL, this, "cha_ip")); + remboxmenu->enableSaveScreen(true); timer_remotebox_item timer_rb; timer_rb.rbaddress = rbaddress; if (!timer_rb.rbaddress.empty()) @@ -348,9 +350,10 @@ int CTimerList::exec(CMenuTarget* parent, const std::string & actionKey) bselected = remboxmenu->getSelected(); if (bselected >= item_offset) { - remboxmenu->removeItem(bselected); - remboxmenu->enableSaveScreen(false); remboxmenu->hide(); + remboxmenu->enableSaveScreen(false); + remboxmenu->removeItem(bselected); + remboxmenu->enableSaveScreen(true); bselected = remboxmenu->getSelected(); changed = true; }