mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
CComponentsFrmClock: ensure slot connect, if it is empty
Origin commit data
------------------
Commit: 2b41e1c60f
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-04-17 (Sun, 17 Apr 2016)
This commit is contained in:
@@ -317,8 +317,10 @@ bool CComponentsFrmClock::startClock()
|
|||||||
|
|
||||||
if (cl_timer == NULL){
|
if (cl_timer == NULL){
|
||||||
cl_timer = new CComponentsTimer();
|
cl_timer = new CComponentsTimer();
|
||||||
dprintf(DEBUG_INFO, "[CComponentsFrmClock] [%s] init slot...\n", __func__);
|
if (cl_timer->OnTimer.empty()){
|
||||||
cl_timer->OnTimer.connect(cl_sl);
|
dprintf(DEBUG_INFO,"\033[33m[CComponentsFrmClock]\t[%s] init slot...\033[0m\n", __func__);
|
||||||
|
cl_timer->OnTimer.connect(cl_sl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cl_timer->setTimerIntervall(cl_interval);
|
cl_timer->setTimerIntervall(cl_interval);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user