Skip to content
Browse files
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 82060f4c9262e3acf16db7fca77bab7140dc07ec
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsfieldsproperties.cpp
@@ -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 );

0 comments on commit 82060f4

Please sign in to comment.