mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 02:11:11 +02:00
gui/network_service.cpp: fix shortcut in case of inactive items
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user