From 621dd2c0516419592361f99f6de5e26b3a0e62d7 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Thu, 25 Sep 2014 21:53:35 +0200 Subject: [PATCH] Fix background paint header clock in channellist Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/862a724a3d6f71f37a93cd178729986a4a46f45a Author: Michael Liebmann Date: 2014-09-25 (Thu, 25 Sep 2014) --- src/gui/channellist.cpp | 6 ++++++ src/gui/components/cc_frm_clock.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index fb40d19a1..58bef2afe 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -2155,6 +2155,12 @@ void CChannelList::paintHead() CComponentsHeader header(x, y, full_width, theight, name /*no header icon*/); header.paint(CC_SAVE_SCREEN_NO); + if (headerClock != NULL) { + headerClock->clearSavedScreen(); + delete headerClock; + headerClock = NULL; + } + if (g_Sectionsd->getIsTimeSet()) { if (headerClock == NULL) { headerClock = new CComponentsFrmClock(0, 0, 0, 0, "%H:%M", true); diff --git a/src/gui/components/cc_frm_clock.cpp b/src/gui/components/cc_frm_clock.cpp index c6aecd590..a26f95d28 100644 --- a/src/gui/components/cc_frm_clock.cpp +++ b/src/gui/components/cc_frm_clock.cpp @@ -305,7 +305,7 @@ bool CComponentsFrmClock::stopThread() return false; } } - kill(); + hide(); cl_thread = 0; return true; }