CComponentsForm: use addCCItem() instead push_back

push_back doesn't make all necessary steps to add an item
This commit is contained in:
2013-06-23 22:28:23 +02:00
parent a8721fa72a
commit 460c8bbff3

View File

@@ -227,7 +227,7 @@ void CComponentsForm::insertCCItem(const uint& cc_item_id, CComponentsItem* cc_I
} }
if (v_cc_items.empty()){ if (v_cc_items.empty()){
v_cc_items.push_back(cc_Item); addCCItem(cc_Item);
#ifdef DEBUG_CC #ifdef DEBUG_CC
printf("[CComponentsForm] %s insert cc_Item not possible, v_cc_items is empty, cc_Item added\n", __FUNCTION__); printf("[CComponentsForm] %s insert cc_Item not possible, v_cc_items is empty, cc_Item added\n", __FUNCTION__);
#endif #endif