Commit 06bb5541 authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Reset the id before destroying a object

Reviewed-by: kkoehne
parent 2f5c906d
......@@ -124,6 +124,7 @@ void ObjectNodeInstance::destroy()
if (deleteHeldInstance()) {
// Remove from old property
if (object() && modelNode().isValid() && modelNode().parentProperty().isValid()) {
setId(QString());
NodeAbstractProperty parentProperty = modelNode().parentProperty();
ModelNode parentNode = parentProperty.parentModelNode();
if (parentNode.isValid() && nodeInstanceView()->hasInstanceForNode(parentNode)) {
......
Supports Markdown
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