dont ask which box, if just one is present.

This commit is contained in:
TangoCash
2017-02-06 12:16:50 +01:00
committed by svenhoefer
parent 0411359866
commit 22b0248d70

View File

@@ -703,6 +703,8 @@ void CTimerList::updateEvents(void)
void CTimerList::RemoteBoxSelect()
{
int select = 0;
if (g_settings.timer_remotebox_ip.size() > 1) {
CMenuWidget *m = new CMenuWidget(LOCALE_REMOTEBOX_HEAD, NEUTRINO_ICON_TIMER);
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
@@ -713,6 +715,7 @@ void CTimerList::RemoteBoxSelect()
m->exec(NULL, "");
delete selector;
}
std::vector<timer_remotebox_item>::iterator it = g_settings.timer_remotebox_ip.begin();
std::advance(it,select);