Skip to content

Commit

Permalink
Update form feature with live values
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Nov 23, 2021
1 parent 82648ab commit 6e74561
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -553,6 +553,7 @@ void QgsAttributeForm::updateValuesDependenciesDefaultValues( const int originId
QgsExpressionContext context = createExpressionContext( updatedFeature );
const QVariant value = mLayer->defaultValue( eww->fieldIdx(), updatedFeature, &context );
eww->setValue( value );
mCurrentFormFeature.setAttribute( eww->field().name(), value );
}
}
}
Expand Down

0 comments on commit 6e74561

Please sign in to comment.