Skip to content
Permalink
Browse files

[Processing] corrected wrong change in config dialog

  • Loading branch information
volaya committed Nov 8, 2015
1 parent f0bbb88 commit 86556c227b538fe3f87c358364c1234b1262a3ea
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/plugins/processing/gui/ConfigDialog.py
@@ -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()

0 comments on commit 86556c2

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