Skip to content

Commit

Permalink
[Processing] corrected wrong change in config dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Nov 8, 2015
1 parent f0bbb88 commit 86556c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/plugins/processing/gui/ConfigDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ def setModelData(self, editor, model, index):
if setting.valuetype == Setting.SELECTION:
model.setData(index, editor.currentText(), Qt.EditRole)
else:
model.setData(index, editor.text(), Qt.EditRole)
if isinstance(value, (str, basestring)):
model.setData(index, editor.text(), Qt.EditRole)
else:
model.setData(index, editor.value(), Qt.EditRole)


def sizeHint(self, option, index):
return QSpinBox().sizeHint()
Expand Down

0 comments on commit 86556c2

Please sign in to comment.