forked from qt-creator/qt-creator
QmlDesigner: Properly delete transition FormEditor items
Change-Id: Id7b2e09bdfeea8693ad862f4a7a7ed536b763460 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
9a35454633
commit
52276a7566
@@ -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.
|
||||
//Otherwise we delete the children explicitly anyway.
|
||||
deleteWithoutChildren(removedItemList);
|
||||
} else if (qmlItemNode.isFlowTransition()) {
|
||||
deleteWithoutChildren(scene()->itemsForQmlItemNodes({qmlItemNode}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user