File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -989,9 +989,9 @@ void QgsFieldsProperties::apply()
989
989
QString name = mLayer ->fields ().at ( idx ).name ();
990
990
FieldConfig cfg = configForRow ( i );
991
991
992
- editFormConfig.setReadOnly ( i , !cfg.mEditable );
993
- editFormConfig.setLabelOnTop ( i , cfg.mLabelOnTop );
994
- mLayer ->setConstraintExpression ( i , cfg.mConstraint , cfg.mConstraintDescription );
992
+ editFormConfig.setReadOnly ( idx , !cfg.mEditable );
993
+ editFormConfig.setLabelOnTop ( idx , cfg.mLabelOnTop );
994
+ mLayer ->setConstraintExpression ( idx , cfg.mConstraint , cfg.mConstraintDescription );
995
995
mLayer ->setEditorWidgetSetup ( idx, QgsEditorWidgetSetup ( cfg.mEditorWidgetType , cfg.mEditorWidgetConfig ) );
996
996
997
997
if ( cfg.mConstraints & QgsFieldConstraints::ConstraintNotNull )
You can’t perform that action at this time.
0 commit comments