Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
osm plugin: fixed a problem with raster layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11215 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jul 30, 2009
1 parent 0269e82 commit e86d80f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/osm/DatabaseManager.py
Expand Up @@ -77,7 +77,7 @@ def currLayerChanged(self,layer):
self.plugin.dockWidget.databaseChanged(None)
return

if layer.dataProvider().name()<>"osm":
if layer.type() != QgsMapLayer.VectorLayer or layer.dataProvider().name()<>"osm":
self.currentKey=None
self.plugin.undoredo.databaseChanged(None)
self.plugin.dockWidget.databaseChanged(None)
Expand Down Expand Up @@ -118,7 +118,7 @@ def layerRemoved(self,layerID):
if not layer:
return # strange situation

if layer.dataProvider().name()<>"osm":
if layer.type() != QgsMapLayer.VectorLayer or layer.dataProvider().name()<>"osm":
return # it's not OSM layer -> just ignore it

# yes, it's osm layer; find out database file it's getting OSM data from
Expand Down

0 comments on commit e86d80f

Please sign in to comment.