Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
backport sorted field list issues
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 6630eed commit 82060f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsfieldsproperties.cpp
Expand Up @@ -903,8 +903,8 @@ 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()->setReadOnly( idx, !cfg.mEditable );
mLayer->editFormConfig()->setLabelOnTop( idx, cfg.mLabelOnTop );

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

0 comments on commit 82060f4

Please sign in to comment.