mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
CComponentsItem: prevent reinit of already initialized parent form
This commit is contained in:
@@ -55,6 +55,8 @@ CComponentsItem::CComponentsItem(CComponentsForm* parent)
|
|||||||
|
|
||||||
void CComponentsItem::initParent(CComponentsForm* parent)
|
void CComponentsItem::initParent(CComponentsForm* parent)
|
||||||
{
|
{
|
||||||
|
if (cc_parent == parent)
|
||||||
|
return;
|
||||||
cc_parent = parent;
|
cc_parent = parent;
|
||||||
if (cc_parent)
|
if (cc_parent)
|
||||||
cc_parent->addCCItem(this);
|
cc_parent->addCCItem(this);
|
||||||
|
Reference in New Issue
Block a user