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:
2016-04-17 16:21:36 +02:00
parent bb2c510f57
commit 58356ce4e3

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);