CComponentsItem: prevent reinit of already initialized parent form

Origin commit data
------------------
Commit: a4b2e25bf2
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-29 (Thu, 29 Sep 2016)
This commit is contained in:
2016-09-29 10:18:45 +02:00
parent eb33a53af9
commit 43477d076a

View File

@@ -55,6 +55,8 @@ CComponentsItem::CComponentsItem(CComponentsForm* parent)
void CComponentsItem::initParent(CComponentsForm* parent)
{
if (cc_parent == parent)
return;
cc_parent = parent;
if (cc_parent)
cc_parent->addCCItem(this);