Skip to content

Commit

Permalink
[processing] fixes #10641
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jun 20, 2014
1 parent b96f8fe commit 2e858c4
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions python/plugins/processing/parameters/ParameterMultipleInput.py
Expand Up @@ -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)
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 2e858c4

Please sign in to comment.