Skip to content

Commit

Permalink
Merge pull request #6429 from nyalldawson/fix_18179
Browse files Browse the repository at this point in the history
[processing] Fix config exception with INT/FLOAT settings
  • Loading branch information
alexbruy committed Feb 23, 2018
2 parents 08b75ec + 75a9150 commit a5399de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/gui/ConfigDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ def setEditorData(self, editor, index):
setting = index.model().data(index, Qt.UserRole)
if setting.valuetype == Setting.SELECTION:
editor.setCurrentIndex(editor.findText(value))
elif setting.valuetype in (Setting.FLOAT, Setting.INT):
editor.setValue(value)
else:
editor.setText(value)

Expand Down

0 comments on commit a5399de

Please sign in to comment.