Skip to content

Commit

Permalink
[Processing] Fix exception when setting a numeric value in Processing…
Browse files Browse the repository at this point in the history
… options.
  • Loading branch information
radosuav committed Jan 17, 2017
1 parent 42026af commit f2a7f0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/gui/ConfigDialog.py
Expand Up @@ -345,6 +345,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 == Setting.INT or setting.valuetype == Setting.FLOAT:
editor.setValue(value)
else:
editor.setText(value)

Expand Down

0 comments on commit f2a7f0a

Please sign in to comment.