mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[Processing] corrected wrong change in config dialog
This commit is contained in:
parent
f0bbb88944
commit
86556c227b
@ -223,7 +223,11 @@ class SettingDelegate(QStyledItemDelegate):
|
||||
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user