mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
fix gdaltools error checking for ogr layers
This commit is contained in:
parent
f1d7062c3e
commit
f2b6876085
@ -153,7 +153,7 @@ class LayerRegistry(QObject):
|
||||
def isVector(self, layer):
|
||||
if layer.type() != layer.VectorLayer:
|
||||
return False
|
||||
if layer.usesProvider() and layer.providerKey() != 'ogr':
|
||||
if layer.providerType() != 'ogr':
|
||||
return False
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user