Skip to content
Permalink
Browse files

QgsMapLayerRegistry::removeMapLayers don't emit signals when empty

Fix #15088
  • Loading branch information
m-kuhn committed Jun 26, 2016
1 parent c83c26a commit f3216bb095a56184658242cfb6f0a2d8d22d3362
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/qgsmaplayerregistry.cpp
@@ -127,6 +127,9 @@ void QgsMapLayerRegistry::removeMapLayers( const QStringList& theLayerIds )

void QgsMapLayerRegistry::removeMapLayers( const QList<QgsMapLayer*>& layers )
{
if ( layers.isEmpty() )
return;

QStringList layerIds;

Q_FOREACH ( QgsMapLayer* layer, layers )

0 comments on commit f3216bb

Please sign in to comment.
You can’t perform that action at this time.