Fix background paint header clock in channellist

Origin commit data
------------------
Commit: 862a724a3d
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-25 (Thu, 25 Sep 2014)
This commit is contained in:
Michael Liebmann
2014-09-25 21:53:35 +02:00
committed by [CST] Focus
parent 75c93c6068
commit 621dd2c051
2 changed files with 7 additions and 1 deletions

View File

@@ -2155,6 +2155,12 @@ void CChannelList::paintHead()
CComponentsHeader header(x, y, full_width, theight, name /*no header icon*/); CComponentsHeader header(x, y, full_width, theight, name /*no header icon*/);
header.paint(CC_SAVE_SCREEN_NO); header.paint(CC_SAVE_SCREEN_NO);
if (headerClock != NULL) {
headerClock->clearSavedScreen();
delete headerClock;
headerClock = NULL;
}
if (g_Sectionsd->getIsTimeSet()) { if (g_Sectionsd->getIsTimeSet()) {
if (headerClock == NULL) { if (headerClock == NULL) {
headerClock = new CComponentsFrmClock(0, 0, 0, 0, "%H:%M", true); headerClock = new CComponentsFrmClock(0, 0, 0, 0, "%H:%M", true);

View File

@@ -305,7 +305,7 @@ bool CComponentsFrmClock::stopThread()
return false; return false;
} }
} }
kill(); hide();
cl_thread = 0; cl_thread = 0;
return true; return true;
} }