mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user