Skip to content

Commit

Permalink
backport sorted field list issues
Browse files Browse the repository at this point in the history
If the field list is sorted by name, the touched functions
should take into consideration the sorted list IDs instead of the unsorted one.
  • Loading branch information
tudorbarascu authored and m-kuhn committed Feb 1, 2017
1 parent 467d66a commit 5ddc536
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/qgsfieldsproperties.cpp
Expand Up @@ -987,11 +987,11 @@ void QgsFieldsProperties::apply()
int idx = mFieldsList->item( i, attrIdCol )->text().toInt();
FieldConfig cfg = configForRow( i );

mLayer->editFormConfig()->setReadOnly( i, !cfg.mEditable );
mLayer->editFormConfig()->setLabelOnTop( i, cfg.mLabelOnTop );
mLayer->editFormConfig()->setNotNull( i, cfg.mNotNull );
mLayer->editFormConfig()->setExpressionDescription( i, cfg.mConstraintDescription );
mLayer->editFormConfig()->setExpression( i, cfg.mConstraint );
mLayer->editFormConfig()->setReadOnly( idx, !cfg.mEditable );
mLayer->editFormConfig()->setLabelOnTop( idx, cfg.mLabelOnTop );
mLayer->editFormConfig()->setNotNull( idx, cfg.mNotNull );
mLayer->editFormConfig()->setExpressionDescription( idx, cfg.mConstraintDescription );
mLayer->editFormConfig()->setExpression( idx, cfg.mConstraint );

mLayer->editFormConfig()->setWidgetType( idx, cfg.mEditorWidgetV2Type );
mLayer->editFormConfig()->setWidgetConfig( idx, cfg.mEditorWidgetV2Config );
Expand Down

0 comments on commit 5ddc536

Please sign in to comment.