Skip to content

Commit f3216bb

Browse files
committed
QgsMapLayerRegistry::removeMapLayers don't emit signals when empty
Fix #15088
1 parent c83c26a commit f3216bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/qgsmaplayerregistry.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ void QgsMapLayerRegistry::removeMapLayers( const QStringList& theLayerIds )
127127

128128
void QgsMapLayerRegistry::removeMapLayers( const QList<QgsMapLayer*>& layers )
129129
{
130+
if ( layers.isEmpty() )
131+
return;
132+
130133
QStringList layerIds;
131134

132135
Q_FOREACH ( QgsMapLayer* layer, layers )

0 commit comments

Comments
 (0)