From 658941f7219b78234031a0e8a504d8dbec6f3648 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 5 Jan 2020 21:17:59 +0100 Subject: [PATCH] cc_frm_header: minor format changes --- src/gui/components/cc_frm_header.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/components/cc_frm_header.cpp b/src/gui/components/cc_frm_header.cpp index bc363d6fe..0aff321e1 100644 --- a/src/gui/components/cc_frm_header.cpp +++ b/src/gui/components/cc_frm_header.cpp @@ -515,11 +515,15 @@ void CComponentsHeader::enableClock(bool enable, const char* format, const char* { cch_cl_enable = enable; cch_cl_format = format; + if (cch_cl_obj && cch_cl_enable) cch_cl_obj->clear(); + if (sec_format_str) cch_cl_sec_format = sec_format_str; + cch_cl_enable_run = run; + if (!cch_cl_enable){ if (cch_cl_obj){ cch_cl_enable_run = false; @@ -527,6 +531,7 @@ void CComponentsHeader::enableClock(bool enable, const char* format, const char* cch_cl_obj = NULL; } } + initCCItems(); }