Skip to content
Permalink
Browse files

[processing] do not accept grass vector layers as inputs

fixes #12436

(cherry picked from commit de72874)
  • Loading branch information
volaya authored and jef-n committed Jun 26, 2015
1 parent 3792afd commit d03793c4b827265d6555d8d70ee60bb1bb930430
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/tools/dataobjects.py
@@ -90,7 +90,7 @@ def getVectorLayers(shapetype=[-1], sorting=True):
vector = []
for layer in layers:
mapLayer = layer.layer()
if mapLayer.type() == QgsMapLayer.VectorLayer:
if mapLayer.type() == QgsMapLayer.VectorLayer and mapLayer.dataProvider().name() != "grass":
if (mapLayer.hasGeometryType() and
(shapetype == ALL_TYPES or mapLayer.geometryType() in shapetype)):
vector.append(mapLayer)

0 comments on commit d03793c

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