gui/network_service.cpp: fix shortcut in case of inactive items

This commit is contained in:
[CST] Focus
2014-10-11 15:48:32 +04:00
parent 2878b34141
commit acee2b402e

View File

@@ -187,9 +187,7 @@ int CNetworkServiceSetup::showNetworkServiceSetup()
if ( (services[i].name == "Telnet") && useinetd) if ( (services[i].name == "Telnet") && useinetd)
active = false; active = false;
CMenuOptionChooser * mc = new CMenuOptionChooser(services[i].name.c_str(), &services[i].enabled, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, active, items[i], CRCInput::convertDigitToKey(shortcut), ""); CMenuOptionChooser * mc = new CMenuOptionChooser(services[i].name.c_str(), &services[i].enabled, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, active, items[i], CRCInput::convertDigitToKey(shortcut++), "");
if (active)
shortcut++;
mc->setHint(services[i].icon, services[i].hint); mc->setHint(services[i].icon, services[i].hint);
setup->addItem(mc); setup->addItem(mc);