diff --git a/src/gui/components/cc_timer.cpp b/src/gui/components/cc_timer.cpp index f3ef5b751..738f2d01f 100644 --- a/src/gui/components/cc_timer.cpp +++ b/src/gui/components/cc_timer.cpp @@ -58,7 +58,7 @@ CComponentsTimer::~CComponentsTimer() void CComponentsTimer::runSharedTimerAction() { //start loop - string tn = "cc:"+name; + tn = "cc:"+name; set_threadname(tn.c_str()); while(tm_enable && tm_interval > 0) { tm_mutex.lock(); diff --git a/src/gui/components/cc_timer.h b/src/gui/components/cc_timer.h index c7e2d21cd..dc6d090c7 100644 --- a/src/gui/components/cc_timer.h +++ b/src/gui/components/cc_timer.h @@ -65,7 +65,7 @@ class CComponentsTimer : public sigc::trackable ///name for the thread std::string name; - + std::string tn; ///mutex for timer OpenThreads::Mutex tm_mutex; ///slot for restart signals