Skip to content
Permalink
Browse files

[Processing] Fix exception when setting a numeric value in Processing…

… options.
  • Loading branch information
radosuav committed Jan 17, 2017
1 parent 42026af commit f2a7f0a445c41b989b6413aa061c79a1b98f8a1b
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/processing/gui/ConfigDialog.py
@@ -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)

0 comments on commit f2a7f0a

Please sign in to comment.
You can’t perform that action at this time.