Skip to content

Commit

Permalink
[forms] Address review: allow users to copy widget configuration to c…
Browse files Browse the repository at this point in the history
…lipboard and paste it in the very same field (could be useful as a undo operation after testing intermmediate changes)
  • Loading branch information
gacarrillor authored and lbartoletti committed Jan 10, 2025
1 parent d36d904 commit 8c01754
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/gui/vector/qgsattributesformproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c01754

Please sign in to comment.