From 10e359e43b9369042a1f93aecb48b425047ee9ff Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Wed, 14 Nov 2012 21:32:35 +0100 Subject: [PATCH] miscsettings: use correct scope for sleeptimer menuwidget --- src/gui/miscsettings_menu.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/miscsettings_menu.cpp b/src/gui/miscsettings_menu.cpp index 95ec59b46..bd717fd4c 100644 --- a/src/gui/miscsettings_menu.cpp +++ b/src/gui/miscsettings_menu.cpp @@ -207,8 +207,9 @@ int CMiscMenue::showMiscSettingsMenu() if (!g_info.hw_caps->can_shutdown) { /* we don't have the energy menu, but put the sleeptimer directly here */ - CSleepTimerWidget sleeptimer; - misc_menue.addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_SLEEPTIMER, true, g_settings.shutdown_min, &sleeptimer, "permanent", CRCInput::RC_1)); + mf = new CMenuDForwarder(LOCALE_MISCSETTINGS_SLEEPTIMER, true, g_settings.shutdown_min, new CSleepTimerWidget, "permanent", CRCInput::RC_1); + mf->setHint("", LOCALE_MENU_HINT_INACT_TIMER); + misc_menue.addItem(mf); } //channellist CMenuWidget misc_menue_chanlist(LOCALE_MISCSETTINGS_HEAD, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_MISCSETUP_CHANNELLIST);