fix gdaltools error checking for ogr layers

This commit is contained in:
Giuseppe Sucameli 2011-09-12 13:22:21 +02:00
parent f1d7062c3e
commit f2b6876085

View File

@ -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