mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CComponentsFrmClock: init OnTimer after ititialized timer object
Content of OnTimer was not considered after init of timer object.
This commit is contained in:
@@ -325,12 +325,14 @@ bool CComponentsFrmClock::startClock()
|
|||||||
if (cl_timer == NULL){
|
if (cl_timer == NULL){
|
||||||
cl_timer = new CComponentsTimer(0);
|
cl_timer = new CComponentsTimer(0);
|
||||||
cl_timer->setThreadName("frmClock");
|
cl_timer->setThreadName("frmClock");
|
||||||
|
}
|
||||||
|
|
||||||
if (cl_timer->OnTimer.empty()){
|
if (cl_timer->OnTimer.empty()){
|
||||||
dprintf(DEBUG_INFO,"\033[33m[CComponentsFrmClock]\t[%s] init slot...\033[0m\n", __func__);
|
dprintf(DEBUG_INFO,"\033[33m[CComponentsFrmClock]\t[%s] init slot...\033[0m\n", __func__);
|
||||||
cl_timer->OnTimer.connect(cl_sl_show);
|
cl_timer->OnTimer.connect(cl_sl_show);
|
||||||
force_paint_bg = true;
|
force_paint_bg = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
cl_timer->setTimerInterval(cl_interval);
|
cl_timer->setTimerInterval(cl_interval);
|
||||||
|
|
||||||
if (cl_timer->startTimer())
|
if (cl_timer->startTimer())
|
||||||
|
Reference in New Issue
Block a user