From 04340611729fa3398ccde8163e45c156df92fc42 Mon Sep 17 00:00:00 2001 From: "M. Liebmann" Date: Wed, 11 Dec 2013 14:27:11 +0100 Subject: [PATCH] CComponentsFrmClock: Initialize 'activeClock' variable - Add function setClockActiv() --- src/gui/components/cc_frm_clock.cpp | 1 + src/gui/components/cc_frm_clock.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/gui/components/cc_frm_clock.cpp b/src/gui/components/cc_frm_clock.cpp index c62f045e2..7a64274d0 100644 --- a/src/gui/components/cc_frm_clock.cpp +++ b/src/gui/components/cc_frm_clock.cpp @@ -85,6 +85,7 @@ void CComponentsFrmClock::initVarClock() cl_thread = 0; cl_interval = 1; + activeClock = true; cl_blink_str = ""; } diff --git a/src/gui/components/cc_frm_clock.h b/src/gui/components/cc_frm_clock.h index 5d15c49b5..7c81ae67c 100644 --- a/src/gui/components/cc_frm_clock.h +++ b/src/gui/components/cc_frm_clock.h @@ -130,6 +130,9 @@ class CComponentsFrmClock : public CComponentsForm ///reinitialize clock contents virtual void refresh() { initCCLockItems(); } + + ///set clock activ/inactiv + virtual void setClockActiv(bool activ = true){activeClock = activ;}; }; #endif