Skip to content

Commit 9b9881d

Browse files
authored
Merge pull request #8581 from elpaso/bugfix-20682-form-toggle-editing
[attributeform] Do not reset feature on editing toggled
2 parents d9a70d0 + dd309cc commit 9b9881d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/qgsattributeform.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1497,8 +1497,8 @@ void QgsAttributeForm::init()
14971497

14981498
// This triggers a refresh of the form widget and gives a chance to re-format the
14991499
// value to those widgets that have a different representation when in edit mode
1500-
connect( mLayer, &QgsVectorLayer::editingStarted, this, [ = ] { setFeature( feature() ); } );
1501-
connect( mLayer, &QgsVectorLayer::editingStopped, this, [ = ] { setFeature( feature() ); } );
1500+
connect( mLayer, &QgsVectorLayer::editingStarted, this, &QgsAttributeForm::resetValues );
1501+
connect( mLayer, &QgsVectorLayer::editingStopped, this, &QgsAttributeForm::resetValues );
15021502

15031503

15041504
Q_FOREACH ( QgsAttributeFormInterface *iface, mInterfaces )

0 commit comments

Comments
 (0)