Skip to content
Permalink
Browse files

Fix raster layers showing as input choices for vector algs

  • Loading branch information
nyalldawson committed Jun 12, 2017
1 parent 36ce8d1 commit c52e6a72ba771ebf5d423fdd29a2477371560355
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/gui/wrappers.py
@@ -777,7 +777,7 @@ def createWidget(self):
widget.setLayout(vl)

filters = QgsMapLayerProxyModel.Filters()
if QgsProcessingParameterDefinition.TypeVectorAny in self.param.dataTypes():
if QgsProcessingParameterDefinition.TypeVectorAny in self.param.dataTypes() or len(self.param.dataTypes()) == 0:
filters = QgsMapLayerProxyModel.HasGeometry
if QgsProcessingParameterDefinition.TypeVectorPoint in self.param.dataTypes():
filters |= QgsMapLayerProxyModel.PointLayer

0 comments on commit c52e6a7

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