Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix raster layers showing as input choices for vector algs
  • Loading branch information
nyalldawson committed Jun 12, 2017
1 parent 36ce8d1 commit c52e6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/wrappers.py
Expand Up @@ -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
Expand Down

0 comments on commit c52e6a7

Please sign in to comment.