QmlDesigner: Properly delete transition FormEditor items

Change-Id: Id7b2e09bdfeea8693ad862f4a7a7ed536b763460
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2020-01-29 15:06:49 +01:00
committed by Tim Jenssen
parent 9a35454633
commit 52276a7566

View File

@@ -170,6 +170,8 @@ void FormEditorView::removeNodeFromScene(const QmlItemNode &qmlItemNode)
//We have to keep the children if they are not children in the model anymore. //We have to keep the children if they are not children in the model anymore.
//Otherwise we delete the children explicitly anyway. //Otherwise we delete the children explicitly anyway.
deleteWithoutChildren(removedItemList); deleteWithoutChildren(removedItemList);
} else if (qmlItemNode.isFlowTransition()) {
deleteWithoutChildren(scene()->itemsForQmlItemNodes({qmlItemNode}));
} }
} }