timerlist: fix display of gui-rests when adding a new remotebox

Origin commit data
------------------
Branch: ni/coolstream
Commit: 4d5ab9755f
Author: vanhofen <vanhofen@gmx.de>
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
This commit is contained in:
vanhofen
2018-07-22 19:59:12 +02:00
parent c45f9ad2ff
commit 2c912b4b54

View File

@@ -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;
}