File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
python/plugins/processing/parameters Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -67,15 +67,8 @@ def setValue(self, obj):
6767 if self .optional :
6868 return True
6969 else :
70- return False
71- s = ''
72- idx = 0
73- for layer in obj :
74- s += self .getAsString (layer )
75- if idx < len (obj ) - 1 :
76- s += ';'
77- idx = idx + 1
78- self .value = s
70+ return False
71+ self .value = ";" .join ([self .getAsString (lay ) for lay in obj ])
7972 return True
8073 else :
8174 self .value = unicode (obj )
@@ -149,7 +142,7 @@ def getAsString(self, value):
149142 return unicode (value .source ())
150143 else :
151144 s = unicode (value )
152- layers = dataobjects .getVectorLayers (self .datatype )
145+ layers = dataobjects .getVectorLayers ([ self .datatype ] )
153146 for layer in layers :
154147 if layer .name () == s :
155148 return unicode (layer .source ())
You can’t perform that action at this time.
0 commit comments