Commit 7178a474 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Check if model has parent property

If you compare the parent property you must check if there is one.

Task-number: QTCREATORBUG-12599
Change-Id: I6033a7572f307d2fd11e90c95cbb7515ef8dcca0
Reviewed-by: default avatarTim Jenssen <>
parent 4ecefc68
......@@ -623,7 +623,7 @@ static bool isInLayoutable(NodeAbstractProperty &parentProperty)
static void reparentModelNodeToNodeProperty(NodeAbstractProperty &parentProperty, const ModelNode &modelNode)
if (parentProperty != modelNode.parentProperty()) {
if (!modelNode.hasParentProperty() || parentProperty != modelNode.parentProperty()) {
if (isInLayoutable(parentProperty)) {
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