Skip to content

Commit c455bf6

Browse files
committedDec 5, 2018
[attributeform] Do not reset feature on editing toggled
... just reset values Fixes #20682 - form toggle editing cherry-pick dd309cc
1 parent 1e5e373 commit c455bf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/qgsattributeform.cpp

Lines changed: 2 additions & 2 deletions
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)
Please sign in to comment.