mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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:
@@ -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