From 6b640cfa7be22787e0ca367b5d5a47510a772b0c Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 31 Oct 2016 18:23:17 +0100 Subject: [PATCH] src/gui/scan_setup.cpp fix preselected transponder item --- src/gui/scan_setup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index 5ad95d794..a4aa2599b 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -1963,7 +1963,7 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &actionkey) if(channel) CServiceManager::getInstance()->GetTransponder(channel->getTransponderId(), ct); - int i = 0; + int i = menu.getItemsCount(); transponder_list_t &select_transponders = CServiceManager::getInstance()->GetSatelliteTransponders(position); for (transponder_list_t::iterator tI = select_transponders.begin(); tI != select_transponders.end(); ++tI) { sprintf(cnt, "%d", i);