mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CChannelList: add instance check for header clock object
Only for sure.
This commit is contained in:
@@ -2143,7 +2143,8 @@ void CChannelList::paintHead()
|
||||
header->removeContextButtons();
|
||||
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{
|
||||
if (header->getClockObject()){
|
||||
header->disableClock();
|
||||
|
Reference in New Issue
Block a user