Skip to content

Commit

Permalink
[processing] more fixes to "selection" type settings handling
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jan 13, 2017
1 parent 3605d4f commit 49b6c5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugins/processing/core/ProcessingConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,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

Expand Down

0 comments on commit 49b6c5f

Please sign in to comment.