From ab44dbd3e78d38e2816f014aa0c7c0cf99176af1 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 30 Sep 2014 09:04:03 +0200 Subject: [PATCH] CComponentsTimer: start timer only if interval > 0 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/8aa2b6a5ab35974a3c6facc9441895af3c730ead Author: Thilo Graf Date: 2014-09-30 (Tue, 30 Sep 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/components/cc_timer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc_timer.cpp b/src/gui/components/cc_timer.cpp index 42efb2b99..e303ade61 100644 --- a/src/gui/components/cc_timer.cpp +++ b/src/gui/components/cc_timer.cpp @@ -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()