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,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();
|
||||
|
Reference in New Issue
Block a user