From 43477d076ab1de47099c9b236faaa329ef9c4c5c Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 29 Sep 2016 10:18:45 +0200 Subject: [PATCH] CComponentsItem: prevent reinit of already initialized parent form Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/a4b2e25bf21e760549618fa0ab91b288147d76dc Author: Thilo Graf Date: 2016-09-29 (Thu, 29 Sep 2016) --- src/gui/components/cc_item.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/components/cc_item.cpp b/src/gui/components/cc_item.cpp index e973996e1..4b6e56e9c 100644 --- a/src/gui/components/cc_item.cpp +++ b/src/gui/components/cc_item.cpp @@ -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);