CComponentsFrmClock: ensure slot connect, if it is empty

This commit is contained in:
2016-04-17 16:21:36 +02:00
parent da8569f2e7
commit 2b41e1c60f

View File

@@ -317,8 +317,10 @@ bool CComponentsFrmClock::startClock()
if (cl_timer == NULL){
cl_timer = new CComponentsTimer();
dprintf(DEBUG_INFO, "[CComponentsFrmClock] [%s] init slot...\n", __func__);
cl_timer->OnTimer.connect(cl_sl);
if (cl_timer->OnTimer.empty()){
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);