From 0781fc000b890bb9a42f73cef4e6fcc19f686073 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 5 Feb 2014 11:14:52 +0100 Subject: [PATCH] CComponentsWindow: remove redundant init of header and footer Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/a6eb67d4567eb7b71788e161715267f91c5e1ca8 Author: Thilo Graf Date: 2014-02-05 (Wed, 05 Feb 2014) --- src/gui/components/cc_frm_window.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gui/components/cc_frm_window.cpp b/src/gui/components/cc_frm_window.cpp index b1c207c2a..de7f91888 100644 --- a/src/gui/components/cc_frm_window.cpp +++ b/src/gui/components/cc_frm_window.cpp @@ -212,10 +212,6 @@ void CComponentsWindow::initCCWItems() #ifdef DEBUG_CC printf("[CComponentsWindow] [%s - %d] init items...\n", __func__, __LINE__); #endif - initHeader(); - initFooter(); - initBody(); - //add/remove header if required if (ccw_show_header){ initHeader(); @@ -236,6 +232,8 @@ void CComponentsWindow::initCCWItems() } } + initBody(); + //add header, body and footer items only one time if (ccw_head) if (!ccw_head->isAdded())