Skip to content

Commit

Permalink
Merge pull request #4007 from radosuav/numeric_setting_fix
Browse files Browse the repository at this point in the history
[Processing] Fix exception when setting a numeric value in Processing options.
  • Loading branch information
volaya committed Jan 19, 2017
2 parents 3ebe15b + f2a7f0a commit c84b51f
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 c84b51f

Please sign in to comment.