mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-30 00:29:39 -05:00
[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)
This commit is contained in:
parent
d36d904b43
commit
8c01754d6d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user