We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f01b2f0 commit daf65d8Copy full SHA for daf65d8
python/plugins/processing/core/ProcessingConfig.py
@@ -232,10 +232,7 @@ def getSetting(name):
232
v = None
233
except:
234
pass
235
- if ProcessingConfig.settings[name].valuetype == Setting.SELECTION:
236
- return ProcessingConfig.settings[name].options.index(v)
237
- else:
238
- return v
+ return v
239
else:
240
return None
241
@@ -328,7 +325,10 @@ def read(self, qsettings=QSettings()):
328
325
value = str(value).lower() == str(True).lower()
329
326
330
327
if self.valuetype == self.SELECTION:
331
- self.value = self.options[int(value)]
+ try:
+ self.value = self.options[int(value)]
+ except:
+ self.value = self.options[0]
332
333
self.value = value
334
0 commit comments