Skip to content
Permalink
Browse files

[processing] handle string settings from previous install (followup 0…

  • Loading branch information
alexbruy committed Jan 13, 2017
1 parent f01b2f0 commit daf65d8fdf3f8eb238c07f682c4d9a508e613f7a
Showing with 5 additions and 5 deletions.
  1. +5 −5 python/plugins/processing/core/ProcessingConfig.py
@@ -232,10 +232,7 @@ def getSetting(name):
v = None
except:
pass
if ProcessingConfig.settings[name].valuetype == Setting.SELECTION:
return ProcessingConfig.settings[name].options.index(v)
else:
return v
return v
else:
return None

@@ -328,7 +325,10 @@ def read(self, qsettings=QSettings()):
value = str(value).lower() == str(True).lower()

if self.valuetype == self.SELECTION:
self.value = self.options[int(value)]
try:
self.value = self.options[int(value)]
except:
self.value = self.options[0]
else:
self.value = value

0 comments on commit daf65d8

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