From 0f7985c95c238016fec54cc57d169cd260545ed3 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 18 Nov 2015 19:43:06 +0100 Subject: [PATCH] CAudioPlayerGui:try to fix infocklock view in audioplayer. after closed screensaver, infoclock was painted. That looks not good. This should fix this. --- src/gui/audioplayer.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/audioplayer.cpp b/src/gui/audioplayer.cpp index 23d8bdc3a..4d1e9ccc6 100644 --- a/src/gui/audioplayer.cpp +++ b/src/gui/audioplayer.cpp @@ -69,7 +69,7 @@ #include #include "gui/pictureviewer.h" extern CPictureViewer * g_PicViewer; - +#include #include #include #include @@ -334,7 +334,8 @@ int CAudioPlayerGui::show() // clear whole screen m_frameBuffer->paintBackground(); - + CInfoClock::getInstance()->block(); + CScreenSaver::getInstance()->OnAfterStop.connect(sigc::mem_fun(CInfoClock::getInstance(), &CInfoClock::block)); CVFD::getInstance()->setMode(CVFD::MODE_AUDIO); paintLCD(); @@ -848,7 +849,8 @@ int CAudioPlayerGui::show() if (m_state != CAudioPlayerGui::STOP) stop(); - + CInfoClock::getInstance()->enableInfoClock(CInfoClock::getInstance()->isRun()); + CScreenSaver::getInstance()->OnAfterStop.clear(); return ret; }