From a418917adee88a34dfbba86afdc2a7a4fa275058 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 3 Jan 2019 21:55:33 +0100 Subject: [PATCH] - miscsettings: add missing shortcut to sleeptimer item Signed-off-by: GetAway --- src/gui/miscsettings_menu.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/miscsettings_menu.cpp b/src/gui/miscsettings_menu.cpp index 4684bab33..3fe3dc9fd 100644 --- a/src/gui/miscsettings_menu.cpp +++ b/src/gui/miscsettings_menu.cpp @@ -282,18 +282,21 @@ int CMiscMenue::showMiscSettingsMenu() //cec settings CCECSetup cecsetup; - if (g_info.hw_caps->can_cec) { + if (g_info.hw_caps->can_cec) + { mf = new CMenuForwarder(LOCALE_VIDEOMENU_HDMI_CEC, true, NULL, &cecsetup, NULL, CRCInput::convertDigitToKey(shortcut++)); mf->setHint("", LOCALE_MENU_HINT_MISC_CEC); misc_menue.addItem(mf); } - if (!g_info.hw_caps->can_shutdown) { + if (!g_info.hw_caps->can_shutdown) + { /* we don't have the energy menu, but put the sleeptimer directly here */ - mf = new CMenuDForwarder(LOCALE_MISCSETTINGS_SLEEPTIMER, true, NULL, new CSleepTimerWidget(true)); + mf = new CMenuDForwarder(LOCALE_MISCSETTINGS_SLEEPTIMER, true, NULL, new CSleepTimerWidget(true), NULL, CRCInput::convertDigitToKey(shortcut++)); mf->setHint("", LOCALE_MENU_HINT_INACT_TIMER); misc_menue.addItem(mf); } + //channellist mf = new CMenuForwarder(LOCALE_MISCSETTINGS_CHANNELLIST, true, NULL, this, "channellist", CRCInput::convertDigitToKey(shortcut++)); mf->setHint("", LOCALE_MENU_HINT_MISC_CHANNELLIST);