Commit ea19d8b5 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Fix crash in tests

This is a behaivour change and the crash seemes to be never
triggered by application code.

Change-Id: I25d986139c47fd1acd0989220942e6e7ec69ef5d
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 568e80b5
......@@ -336,7 +336,7 @@ void ModelNode::setParentProperty(NodeAbstractProperty parent)
throw InvalidModelNodeException(__LINE__, __FUNCTION__, __FILE__);
}
if (parent == parentProperty())
if (hasParentProperty() && parent == parentProperty())
return;
parent.reparentHere(*this);
......
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