QmlDesigner: Fix crash

Change-Id: Id87a0fc3bb6b9369c743aa985f707facd994f387
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2020-04-15 19:31:37 +02:00
parent ad94463134
commit b75fac036a

View File

@@ -392,7 +392,7 @@ void FormEditorView::bindingPropertiesChanged(const QList<BindingProperty> &prop
QmlVisualNode node(property.parentModelNode());
if (node.isFlowTransition()) {
FormEditorItem *item = m_scene->itemForQmlItemNode(node.toQmlItemNode());
if (item) {
if (item && node.hasNodeParent()) {
m_scene->reparentItem(node.toQmlItemNode(), node.toQmlItemNode().modelParentItem());
m_scene->synchronizeTransformation(item);
item->update();