Skip to content
Permalink
Browse files
[processing] better handling of values in boolean parameter
  • Loading branch information
volaya committed Jun 30, 2014
1 parent 9204ca0 commit 2e9e9544115b459aa3ff0510dc5e22eaa9636ebc
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/processing/parameters/ParameterBoolean.py
@@ -39,7 +39,10 @@ def setValue(self, value):
if value is None:
self.value = self.default
return True
self.value = str(value) == str(True)
if isinstance(value, basestring):
self.value = str(value).lower() == str(True).lower()
else:
self.value = bool(value)
return True

def serialize(self):

0 comments on commit 2e9e954

Please sign in to comment.