Commit 17e5cd70 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Fix crash in qml2puppet

We should not call updateDirtyNode() for items without a window.
This will assert later in consistency checks.

Change-Id: Iff3574123a1497206de88d59fcf630ead57ef593
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 9c77515b
......@@ -581,7 +581,8 @@ void QuickItemNodeInstance::reparent(const ObjectNodeInstance::Pointer &oldParen
}
refresh();
DesignerSupport::updateDirtyNode(quickItem());
if (quickItem()->window())
DesignerSupport::updateDirtyNode(quickItem());
if (instanceIsValidLayoutable(oldParentInstance, oldParentProperty))
oldParentInstance->refreshLayoutable();
......
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