Commit c76ddfc4 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.Instances: crash fix

During destruction both new parent and old parent are invalid.
The intPositioner flag is not updated (isInPositioner()) and we crash.
The check for parentInstance() avoids this.

Change-Id: I5224c58bb461956f7ce2c47349650913975aa836
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 1e2fdb03
......@@ -505,7 +505,7 @@ void QuickItemNodeInstance::reparent(const ObjectNodeInstance::Pointer &oldParen
refresh();
DesignerSupport::updateDirtyNode(quickItem());
if (isInPositioner())
if (parentInstance() && isInPositioner())
parentInstance()->refreshPositioner();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment