Skip to content

Commit 86556c2

Browse files
committed
[Processing] corrected wrong change in config dialog
1 parent f0bbb88 commit 86556c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

python/plugins/processing/gui/ConfigDialog.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,11 @@ def setModelData(self, editor, model, index):
223223
if setting.valuetype == Setting.SELECTION:
224224
model.setData(index, editor.currentText(), Qt.EditRole)
225225
else:
226-
model.setData(index, editor.text(), Qt.EditRole)
226+
if isinstance(value, (str, basestring)):
227+
model.setData(index, editor.text(), Qt.EditRole)
228+
else:
229+
model.setData(index, editor.value(), Qt.EditRole)
230+
227231

228232
def sizeHint(self, option, index):
229233
return QSpinBox().sizeHint()

0 commit comments

Comments
 (0)