Skip to content
Permalink
Browse files

Merge pull request #4007 from radosuav/numeric_setting_fix

[Processing] Fix exception when setting a numeric value in Processing options.
  • Loading branch information
volaya committed Jan 19, 2017
2 parents 3ebe15b + f2a7f0a commit c84b51ffb29cf32615d5c4e2c0b7839e459ae9db
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 c84b51f

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