We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1cce091 + 9c2f572 commit 5f1ed35Copy full SHA for 5f1ed35
src/app/qgsfieldcalculator.cpp
@@ -158,7 +158,11 @@ void QgsFieldCalculator::accept()
158
return;
159
}
160
161
- if ( mNewFieldGroupBox->isChecked() && mCreateVirtualFieldCheckbox->isChecked() )
+ // Test for creating expression field based on ! mUpdateExistingGroupBox checked rather
162
+ // than on mNewFieldGroupBox checked, as if the provider does not support adding attributes
163
+ // then mUpdateExistingGroupBox is set to not checkable, and hence is not checked. This
164
+ // is a minimum fix to resolve this - better would be some GUI redesign...
165
+ if ( ! mUpdateExistingGroupBox->isChecked() && mCreateVirtualFieldCheckbox->isChecked() )
166
{
167
mVectorLayer->addExpressionField( calcString, fieldDefinition() );
168
0 commit comments