Skip to content

Commit a20c483

Browse files
author
mhugent
committed
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
1 parent 2de9bfa commit a20c483

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/qgsmaplayerregistry.cpp

+1
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)