Skip to content

Commit

Permalink
QgsMapLayerRegistry::removeMapLayers don't emit signals when empty
Browse files Browse the repository at this point in the history
Fix #15088
  • Loading branch information
m-kuhn committed Jun 26, 2016
1 parent c83c26a commit f3216bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsmaplayerregistry.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit f3216bb

Please sign in to comment.