From 8c01754d6daceebc71aa1a91c17cb348e4198523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Carrillo?= Date: Wed, 8 Jan 2025 16:31:01 +0100 Subject: [PATCH] [forms] Address review: allow users to copy widget configuration to clipboard and paste it in the very same field (could be useful as a undo operation after testing intermmediate changes) --- src/gui/vector/qgsattributesformproperties.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gui/vector/qgsattributesformproperties.cpp b/src/gui/vector/qgsattributesformproperties.cpp index 060623f9227..044e3d1f908 100644 --- a/src/gui/vector/qgsattributesformproperties.cpp +++ b/src/gui/vector/qgsattributesformproperties.cpp @@ -2163,11 +2163,6 @@ void QgsAttributesFormProperties::pasteWidgetConfiguration() if ( docElem.tagName() != QLatin1String( "FormWidgetClipboard" ) ) return; - // We avoid pasting if origin and target fields are the same - const QString sourceFieldName = docElem.attribute( QStringLiteral( "name" ) ); - if ( sourceFieldName == fieldName ) - return; - // When pasting, the target item has already been selected and // has triggered attribute type dialog loading. Therefore, we'll // only overwrite GUI settings instead of destroying and recreating