[QGIS Commit] r9743 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Dec 5 09:08:25 EST 2008


Author: mhugent
Date: 2008-12-05 09:08:25 -0500 (Fri, 05 Dec 2008)
New Revision: 9743

Modified:
   trunk/qgis/src/core/qgsmaplayerregistry.cpp
Log:
Send layerWillBeRemoved signal for each layer in QgsMapLayerRegistry::removeAllMapLayers()

Modified: trunk/qgis/src/core/qgsmaplayerregistry.cpp
===================================================================
--- trunk/qgis/src/core/qgsmaplayerregistry.cpp	2008-12-05 07:34:36 UTC (rev 9742)
+++ trunk/qgis/src/core/qgsmaplayerregistry.cpp	2008-12-05 14:08:25 UTC (rev 9743)
@@ -111,6 +111,7 @@
   QMap<QString, QgsMapLayer *>::iterator it;
   for ( it = mMapLayers.begin(); it != mMapLayers.end() ; ++it )
   {
+    emit layerWillBeRemoved( it.key() );
     delete it.value(); // delete the map layer
   }
   mMapLayers.clear();



More information about the QGIS-commit mailing list