Skip to content

Commit 882a80a

Browse files
tudorbarascum-kuhn
authored andcommitted
fix labelontop/editable when field list sorted
1 parent 21637fd commit 882a80a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/qgsfieldsproperties.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -989,9 +989,9 @@ void QgsFieldsProperties::apply()
989989
QString name = mLayer->fields().at( idx ).name();
990990
FieldConfig cfg = configForRow( i );
991991

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 );
995995
mLayer->setEditorWidgetSetup( idx, QgsEditorWidgetSetup( cfg.mEditorWidgetType, cfg.mEditorWidgetConfig ) );
996996

997997
if ( cfg.mConstraints & QgsFieldConstraints::ConstraintNotNull )

0 commit comments

Comments
 (0)