CComponentsFrmClock: ensure slot connect, if it is empty

Origin commit data
------------------
Branch: ni/coolstream
Commit: 2b41e1c60f
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-04-17 (Sun, 17 Apr 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2016-04-17 16:21:36 +02:00
parent 4f2680c5c7
commit af444ecf03

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