Skip to content
Permalink
Browse files

[processing] fixes #10641

  • Loading branch information
volaya committed Jun 20, 2014
1 parent b96f8fe commit 2e858c439c09eaa6c0fe38498d5b87dce8a04077
Showing with 3 additions and 10 deletions.
  1. +3 −10 python/plugins/processing/parameters/ParameterMultipleInput.py
@@ -67,15 +67,8 @@ def setValue(self, obj):
if self.optional:
return True
else:
return False
s = ''
idx = 0
for layer in obj:
s += self.getAsString(layer)
if idx < len(obj) - 1:
s += ';'
idx = idx + 1
self.value = s
return False
self.value = ";".join([self.getAsString(lay) for lay in obj])
return True
else:
self.value = unicode(obj)
@@ -149,7 +142,7 @@ def getAsString(self, value):
return unicode(value.source())
else:
s = unicode(value)
layers = dataobjects.getVectorLayers(self.datatype)
layers = dataobjects.getVectorLayers([self.datatype])
for layer in layers:
if layer.name() == s:
return unicode(layer.source())

0 comments on commit 2e858c4

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