Skip to content

Commit a20c483

Browse files
author
mhugent
committedDec 5, 2008
Send layerWillBeRemoved signal for each layer in QgsMapLayerRegistry::removeAllMapLayers()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9743 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/core/qgsmaplayerregistry.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ void QgsMapLayerRegistry::removeAllMapLayers()
111111
QMap<QString, QgsMapLayer *>::iterator it;
112112
for ( it = mMapLayers.begin(); it != mMapLayers.end() ; ++it )
113113
{
114+
emit layerWillBeRemoved( it.key() );
114115
delete it.value(); // delete the map layer
115116
}
116117
mMapLayers.clear();

0 commit comments

Comments
 (0)
Please sign in to comment.