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 f193c4e commit 4b0df5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsmaplayerregistry.cpp
Original file line number Diff line number Diff line change
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 4b0df5b

Please sign in to comment.