Skip to content

Commit

Permalink
[processing] Fix config exception with INT/FLOAT settings
Browse files Browse the repository at this point in the history
Fixes #18179
  • Loading branch information
nyalldawson committed Feb 23, 2018
1 parent 3e86804 commit 75a9150
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/gui/ConfigDialog.py
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 75a9150

Please sign in to comment.