Skip to content

Commit f2a7f0a

Browse files
committedJan 17, 2017
[Processing] Fix exception when setting a numeric value in Processing options.
1 parent 42026af commit f2a7f0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎python/plugins/processing/gui/ConfigDialog.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ def setEditorData(self, editor, index):
345345
setting = index.model().data(index, Qt.UserRole)
346346
if setting.valuetype == Setting.SELECTION:
347347
editor.setCurrentIndex(editor.findText(value))
348+
elif setting.valuetype == Setting.INT or setting.valuetype == Setting.FLOAT:
349+
editor.setValue(value)
348350
else:
349351
editor.setText(value)
350352

0 commit comments

Comments
 (0)
Please sign in to comment.