Skip to content
Permalink
Browse files

Commit changes from read only fields

Read only fields can be calculated from default value expressions and then should be committed too.
Fixes #36360
  • Loading branch information
m-kuhn committed May 12, 2020
1 parent b2890f0 commit eb7143c640c7f67720d6c5d73c4ef746b535f748
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsattributeform.cpp
@@ -356,7 +356,7 @@ bool QgsAttributeForm::saveEdits()
for ( int i = 0; i < dstVars.count(); i++ )
{

if ( !qgsVariantEqual( dstVars[i], srcVars[i] ) && srcVars[i].isValid() && fieldIsEditable( fieldIndexes[i] ) )
if ( !qgsVariantEqual( dstVars[i], srcVars[i] ) && srcVars[i].isValid() )
{
dst[fieldIndexes[i]] = srcVars[i];

0 comments on commit eb7143c

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