Skip to content

Commit

Permalink
fix gdaltools error checking for ogr layers
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Sep 12, 2011
1 parent f1d7062 commit f2b6876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/GdalTools/tools/GdalTools_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def getRasterLayers(self):
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

Expand Down

0 comments on commit f2b6876

Please sign in to comment.