Skip to content
Permalink
Browse files
Send layerWillBeRemoved signal for each layer in QgsMapLayerRegistry:…
…:removeAllMapLayers()

git-svn-id: http://svn.osgeo.org/qgis/trunk@9743 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 5, 2008
1 parent 44a2e73 commit 2fcc46e3e76d92b8ffbba5b066ea914f173e020e
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/qgsmaplayerregistry.cpp
@@ -111,6 +111,7 @@ void QgsMapLayerRegistry::removeAllMapLayers()
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();

0 comments on commit 2fcc46e

Please sign in to comment.