Skip to content

Commit

Permalink
[QgsQuick] Updates default values when an attribute value is updated
Browse files Browse the repository at this point in the history
Fixed spelling
  • Loading branch information
vsklencar authored and nyalldawson committed Apr 9, 2021
1 parent 4e688c6 commit c9e5875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/quickgui/attributes/qgsquickattributemodel.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit c9e5875

Please sign in to comment.