From 0d6d5afd3e7585b6d5f7d3b10d310217b2933eb6 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 19 Feb 2013 22:09:47 +0100 Subject: [PATCH] audioplayer.cpp: ignore first keypress when screensaver is on just quit the screensaver and return to loop Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/95b51f699314122b7040a18575bf3f56546fe22f Author: vanhofen Date: 2013-02-19 (Tue, 19 Feb 2013) Origin message was: ------------------ - audioplayer.cpp: ignore first keypress when screensaver is on just quit the screensaver and return to loop ------------------ This commit was generated by Migit --- src/gui/audioplayer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/audioplayer.cpp b/src/gui/audioplayer.cpp index e8bd6ba24..19fe0fcc5 100644 --- a/src/gui/audioplayer.cpp +++ b/src/gui/audioplayer.cpp @@ -432,6 +432,11 @@ int CAudioPlayerGui::show() if (m_screensaver) { screensaver(false); + if (msg < CRCInput::RC_MaxRC) { + // ignore first keypress - just quit the screensaver + g_RCInput->clearRCMsg(); + continue; + } } }