From bc42c618e13b52a018d72213dd20f8af106de20c Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Wed, 31 Aug 2022 10:23:13 +0200 Subject: [PATCH] QmlDesigner: Use new validation approach in integration Many validation tests can now be skipped. Task-number: QDS-7454 Change-Id: I04a800edab774604d825d53a368d05b8520f9e22 Reviewed-by: Thomas Hartmann --- .../qmldesigner/components/integration/designdocument.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/integration/designdocument.cpp b/src/plugins/qmldesigner/components/integration/designdocument.cpp index 47694f844da..c17ed3b6a26 100644 --- a/src/plugins/qmldesigner/components/integration/designdocument.cpp +++ b/src/plugins/qmldesigner/components/integration/designdocument.cpp @@ -560,7 +560,8 @@ void DesignDocument::paste() targetNode = view.firstSelectedModelNode(); // in case we copy and paste a selection we paste in the parent item - if ((view.selectedModelNodes().count() == selectedNodes.count()) && targetNode.isValid() && targetNode.hasParentProperty()) { + if ((view.selectedModelNodes().count() == selectedNodes.count()) + && targetNode.hasParentProperty()) { targetNode = targetNode.parentProperty().parentModelNode(); } else if (view.selectedModelNodes().isEmpty()) { // if selection is empty and copied nodes are all 3D nodes, paste them under the active scene