Skip to content

Commit

Permalink
Send layerWillBeRemoved signal for each layer in QgsMapLayerRegistry:…
Browse files Browse the repository at this point in the history
…: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 2fcc46e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsmaplayerregistry.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 2fcc46e

Please sign in to comment.