CComponentsTimer: start timer only if interval > 0

This commit is contained in:
2014-09-30 09:04:03 +02:00
parent eebfc455c6
commit 8aa2b6a5ab

View File

@@ -42,7 +42,8 @@ CComponentsTimer::CComponentsTimer( const int& interval)
tm_interval = interval;
sl = sigc::mem_fun(*this, &CComponentsTimer::stopTimer);
startTimer();
if (interval > 0)
startTimer();
}
CComponentsTimer::~CComponentsTimer()