Skip to content

Commit c84b51f

Browse files
authoredJan 19, 2017
Merge pull request #4007 from radosuav/numeric_setting_fix
[Processing] Fix exception when setting a numeric value in Processing options.
2 parents 3ebe15b + f2a7f0a commit c84b51f

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.