Skip to content


[processing] correctly handle multiple vector layers
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jun 11, 2015
1 parent ffd2f26 commit 3f7b182
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/plugins/processing/gui/
Expand Up @@ -123,10 +123,12 @@ def setParamValue(self, param, widget, alg=None):
if param.datatype == ParameterMultipleInput.TYPE_FILE:
return param.setValue(widget.selectedoptions)
if param.datatype == ParameterMultipleInput.TYPE_VECTOR_ANY:
if param.datatype == ParameterMultipleInput.TYPE_RASTER:
options = dataobjects.getRasterLayers(sorting=False)
elif param.datatype == ParameterMultipleInput.TYPE_VECTOR_ANY:
options = dataobjects.getVectorLayers(sorting=False)
options = dataobjects.getRasterLayers(sorting=False)
options = dataobjects.getVectorLayers([param.datatype], sorting=False)
return param.setValue([options[i] for i in widget.selectedoptions])
elif isinstance(param, (ParameterNumber, ParameterFile, ParameterCrs,
Expand Down

0 comments on commit 3f7b182

Please sign in to comment.