forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user