CComponentsWindow: remove redundant init of header and footer

This commit is contained in:
2014-02-05 11:14:52 +01:00
parent 14a3546b5f
commit a6eb67d456

View File

@@ -212,10 +212,6 @@ void CComponentsWindow::initCCWItems()
#ifdef DEBUG_CC #ifdef DEBUG_CC
printf("[CComponentsWindow] [%s - %d] init items...\n", __func__, __LINE__); printf("[CComponentsWindow] [%s - %d] init items...\n", __func__, __LINE__);
#endif #endif
initHeader();
initFooter();
initBody();
//add/remove header if required //add/remove header if required
if (ccw_show_header){ if (ccw_show_header){
initHeader(); initHeader();
@@ -236,6 +232,8 @@ void CComponentsWindow::initCCWItems()
} }
} }
initBody();
//add header, body and footer items only one time //add header, body and footer items only one time
if (ccw_head) if (ccw_head)
if (!ccw_head->isAdded()) if (!ccw_head->isAdded())