forked from qt-creator/qt-creator
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: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -581,6 +581,7 @@ void QuickItemNodeInstance::reparent(const ObjectNodeInstance::Pointer &oldParen
|
|||||||
}
|
}
|
||||||
|
|
||||||
refresh();
|
refresh();
|
||||||
|
if (quickItem()->window())
|
||||||
DesignerSupport::updateDirtyNode(quickItem());
|
DesignerSupport::updateDirtyNode(quickItem());
|
||||||
|
|
||||||
if (instanceIsValidLayoutable(oldParentInstance, oldParentProperty))
|
if (instanceIsValidLayoutable(oldParentInstance, oldParentProperty))
|
||||||
|
Reference in New Issue
Block a user