Skip to content
Permalink
Browse files

Merge pull request #8581 from elpaso/bugfix-20682-form-toggle-editing

[attributeform] Do not reset feature on editing toggled
  • Loading branch information
elpaso committed Dec 1, 2018
2 parents d9a70d0 + dd309cc commit 9b9881d3da929afe01d237b1b16d1068a6d99f4a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsattributeform.cpp
@@ -1497,8 +1497,8 @@ void QgsAttributeForm::init()

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


Q_FOREACH ( QgsAttributeFormInterface *iface, mInterfaces )

0 comments on commit 9b9881d

Please sign in to comment.
You can’t perform that action at this time.