Skip to content
Permalink
Browse files

fix labelontop/editable when field list sorted

  • Loading branch information
tudorbarascu authored and m-kuhn committed Jan 25, 2017
1 parent 21637fd commit 882a80a9042ac77e2c8b1550a3ecdeb5531698e4
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/qgsfieldsproperties.cpp
@@ -989,9 +989,9 @@ void QgsFieldsProperties::apply()
QString name = mLayer->fields().at( idx ).name();
FieldConfig cfg = configForRow( i );

editFormConfig.setReadOnly( i, !cfg.mEditable );
editFormConfig.setLabelOnTop( i, cfg.mLabelOnTop );
mLayer->setConstraintExpression( i, cfg.mConstraint, cfg.mConstraintDescription );
editFormConfig.setReadOnly( idx, !cfg.mEditable );
editFormConfig.setLabelOnTop( idx, cfg.mLabelOnTop );
mLayer->setConstraintExpression( idx, cfg.mConstraint, cfg.mConstraintDescription );
mLayer->setEditorWidgetSetup( idx, QgsEditorWidgetSetup( cfg.mEditorWidgetType, cfg.mEditorWidgetConfig ) );

if ( cfg.mConstraints & QgsFieldConstraints::ConstraintNotNull )

0 comments on commit 882a80a

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