Skip to content
Permalink
Browse files
[QgsQuick] Updates default values when an attribute value is updated
Fixed spelling
  • Loading branch information
vsklencar authored and nyalldawson committed Apr 9, 2021
1 parent 4e688c6 commit c9e5875a2bebc3150763fb725b0482cd179334d9
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/quickgui/attributes/qgsquickattributemodel.cpp
@@ -350,8 +350,8 @@ void QgsQuickAttributeModel::updateDefaultValuesAttributes( const QgsField &edit
QgsDefaultValue defaultDefinition = fields.at( i ).defaultValueDefinition();
if ( !defaultDefinition.expression().isEmpty() && defaultDefinition.applyOnUpdate() )
{
// Skip evaluation for a given (last edited ) field to have same behaviour as it is in QGIS
// This allows to edit value, but eventually it will be overwritten by "on update" default value if defined
// Skip evaluation for a given (last edited ) field to have same behavior as it is in QGIS
// Editing a value is allowed, but eventually it will be overwritten by "on update" default value if defined
// when all attributes are saved and form is closed (as in QGIS)
if ( editedField.name() == fields.at( i ).name() )
continue;

0 comments on commit c9e5875

Please sign in to comment.