From a5857e9d5bbe5b5ba80a605b823f8a1801db04a5 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Tue, 14 May 2013 01:09:10 +0200 Subject: [PATCH] - neutrino: use key 'sleep' to execute CSleepTimerWidget --- src/neutrino.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index decdc70fe..a8d39c17d 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -78,6 +78,7 @@ #include "gui/plugins.h" #include "gui/rc_lock.h" #include "gui/scan_setup.h" +#include "gui/sleeptimer.h" #include "gui/start_wizard.h" #include "gui/videosettings.h" @@ -2576,6 +2577,12 @@ _repeat: g_videoSettings->SwitchFormat(); return messages_return::handled; } + else if( msg == CRCInput::RC_sleep ) { + CSleepTimerWidget *sleepTimer = new CSleepTimerWidget; + sleepTimer->exec(NULL, ""); + delete sleepTimer; + return messages_return::handled; + } else if (msg == (neutrino_msg_t) g_settings.key_screenshot) { //video+osd scaled to osd size CScreenShot * sc = new CScreenShot("", (CScreenShot::screenshot_format_t)g_settings.screenshot_format);