Skip to content
Permalink
Browse files

osm plugin: fixed a problem with raster layers

git-svn-id: http://svn.osgeo.org/qgis/trunk@11215 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Jul 30, 2009
1 parent 5136ba9 commit 66544fdde944ff94fe1035d9267803fb8d06bd10
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/osm/DatabaseManager.py
@@ -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)
@@ -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

0 comments on commit 66544fd

Please sign in to comment.
You can’t perform that action at this time.