[QGIS Commit] r11215 - trunk/qgis/python/plugins/osm

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Jul 30 09:02:43 EDT 2009


Author: wonder
Date: 2009-07-30 09:02:43 -0400 (Thu, 30 Jul 2009)
New Revision: 11215

Modified:
   trunk/qgis/python/plugins/osm/DatabaseManager.py
Log:
osm plugin: fixed a problem with raster layers


Modified: trunk/qgis/python/plugins/osm/DatabaseManager.py
===================================================================
--- trunk/qgis/python/plugins/osm/DatabaseManager.py	2009-07-30 12:44:03 UTC (rev 11214)
+++ trunk/qgis/python/plugins/osm/DatabaseManager.py	2009-07-30 13:02:43 UTC (rev 11215)
@@ -77,7 +77,7 @@
             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 @@
         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



More information about the QGIS-commit mailing list