CChannelList: add instance check for header clock object

Only for sure.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 340a6992a1
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-06-15 (Thu, 15 Jun 2017)



------------------
This commit was generated by Migit
This commit is contained in:
2017-06-15 01:01:54 +02:00
parent 37a15282dc
commit e87854a95f

View File

@@ -2143,7 +2143,8 @@ void CChannelList::paintHead()
header->removeContextButtons(); header->removeContextButtons();
header->enableClock(true, "%H:%M", "%H %M", true); header->enableClock(true, "%H:%M", "%H %M", true);
header->getClockObject()->setCorner(RADIUS_LARGE, CORNER_TOP_RIGHT); if (header->getClockObject())
header->getClockObject()->setCorner(RADIUS_LARGE, CORNER_TOP_RIGHT);
}else{ }else{
if (header->getClockObject()){ if (header->getClockObject()){
header->disableClock(); header->disableClock();