Skip to content
Permalink
Browse files
Update form feature with live values
  • Loading branch information
m-kuhn committed Nov 23, 2021
1 parent 82648ab commit 6e745614af4e49f747b756157da2e3b04f21ff36
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgsattributeform.cpp
@@ -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 );
}
}
}

0 comments on commit 6e74561

Please sign in to comment.