src/gui/scan_setup.cpp fix preselected transponder item

This commit is contained in:
Jacek Jendrzej
2016-10-31 18:23:17 +01:00
parent b8849d53b5
commit 6b640cfa7b

View File

@@ -1963,7 +1963,7 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &actionkey)
if(channel) if(channel)
CServiceManager::getInstance()->GetTransponder(channel->getTransponderId(), ct); CServiceManager::getInstance()->GetTransponder(channel->getTransponderId(), ct);
int i = 0; int i = menu.getItemsCount();
transponder_list_t &select_transponders = CServiceManager::getInstance()->GetSatelliteTransponders(position); transponder_list_t &select_transponders = CServiceManager::getInstance()->GetSatelliteTransponders(position);
for (transponder_list_t::iterator tI = select_transponders.begin(); tI != select_transponders.end(); ++tI) { for (transponder_list_t::iterator tI = select_transponders.begin(); tI != select_transponders.end(); ++tI) {
sprintf(cnt, "%d", i); sprintf(cnt, "%d", i);