From acee2b402eecf915251bbbe4274d97954e4e9136 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Sat, 11 Oct 2014 15:48:32 +0400 Subject: [PATCH] gui/network_service.cpp: fix shortcut in case of inactive items --- src/gui/network_service.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/network_service.cpp b/src/gui/network_service.cpp index 70302c30f..d7a0ed648 100644 --- a/src/gui/network_service.cpp +++ b/src/gui/network_service.cpp @@ -187,9 +187,7 @@ int CNetworkServiceSetup::showNetworkServiceSetup() if ( (services[i].name == "Telnet") && useinetd) 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), ""); - if (active) - 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++), ""); mc->setHint(services[i].icon, services[i].hint); setup->addItem(mc);