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

Origin commit data
------------------
Commit: acee2b402e
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-10-11 (Sat, 11 Oct 2014)
This commit is contained in:
[CST] Focus
2014-10-11 15:48:32 +04:00
parent e3b87925fa
commit 114c34fee6

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);