Skip to content

Commit f2b6876

Browse files
committed
fix gdaltools error checking for ogr layers
1 parent f1d7062 commit f2b6876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/GdalTools/tools/GdalTools_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def getRasterLayers(self):
153153
def isVector(self, layer):
154154
if layer.type() != layer.VectorLayer:
155155
return False
156-
if layer.usesProvider() and layer.providerKey() != 'ogr':
156+
if layer.providerType() != 'ogr':
157157
return False
158158
return True
159159

0 commit comments

Comments
 (0)