Skip to content
Permalink
Browse files

[processing] correctly handle multiple vector layers

  • Loading branch information
volaya committed Jun 11, 2015
1 parent ffd2f26 commit 3f7b1824cd961c35d6f3eb7fbd508a53b7ac7209
Showing with 4 additions and 2 deletions.
  1. +4 −2 python/plugins/processing/gui/AlgorithmDialog.py
@@ -123,10 +123,12 @@ def setParamValue(self, param, widget, alg=None):
if param.datatype == ParameterMultipleInput.TYPE_FILE:
return param.setValue(widget.selectedoptions)
else:
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)
else:
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,
ParameterExtent)):

0 comments on commit 3f7b182

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