Commit 0200927d authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.nodeInstances: crash fix for QmlPuppet

We have to check if the instance is valid.
parent ec65b525
......@@ -1157,16 +1157,18 @@ void NodeInstanceServer::findItemChangesAndSendChangeCommands()
const ServerNodeInstance instance = property.first;
const QString propertyName = property.second;
if (instance.isRootNodeInstance() && (propertyName == "width" || propertyName == "height"))
adjustSceneRect = true;
if (instance.isValid()) {
if (instance.isRootNodeInstance() && (propertyName == "width" || propertyName == "height"))
adjustSceneRect = true;
if (propertyName.contains("anchors") && informationChangedInstanceSet.contains(instance))
informationChangedInstanceSet.insert(instance);
if (propertyName.contains("anchors") && informationChangedInstanceSet.contains(instance))
informationChangedInstanceSet.insert(instance);
if (propertyName == "parent") {
informationChangedInstanceSet.insert(instance);
parentChangedSet.insert(instance);
}
if (propertyName == "parent") {
informationChangedInstanceSet.insert(instance);
parentChangedSet.insert(instance);
} else {
propertyChangedList.append(property);
}
}
......
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