From 460c8bbff3560dd2a7037b58e7de245d645d0c1a Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 23 Jun 2013 22:28:23 +0200 Subject: [PATCH] CComponentsForm: use addCCItem() instead push_back push_back doesn't make all necessary steps to add an item --- src/gui/components/cc_frm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm.cpp b/src/gui/components/cc_frm.cpp index ebc65a028..7cba3c969 100644 --- a/src/gui/components/cc_frm.cpp +++ b/src/gui/components/cc_frm.cpp @@ -227,7 +227,7 @@ void CComponentsForm::insertCCItem(const uint& cc_item_id, CComponentsItem* cc_I } if (v_cc_items.empty()){ - v_cc_items.push_back(cc_Item); + addCCItem(cc_Item); #ifdef DEBUG_CC printf("[CComponentsForm] %s insert cc_Item not possible, v_cc_items is empty, cc_Item added\n", __FUNCTION__); #endif