Skip to content
Permalink
Browse files

Do not detach layers loop

(cherry picked from commit 8d2d5b6)
  • Loading branch information
elpaso authored and nyalldawson committed Dec 21, 2020
1 parent 25ddebe commit a73eace25de267574de367172653e92822bfcd6e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsproject.cpp
@@ -1996,7 +1996,7 @@ void QgsProject::onMapLayersAdded( const QList<QgsMapLayer *> &layers )
connect( layer, &QgsMapLayer::configChanged, this, [ = ] { setDirty(); } );

// check if we have to update connections for layers with dependencies
for ( QMap<QString, QgsMapLayer *>::iterator it = existingMaps.begin(); it != existingMaps.end(); ++it )
for ( QMap<QString, QgsMapLayer *>::const_iterator it = existingMaps.cbegin(); it != existingMaps.cend(); ++it )
{
QSet<QgsMapLayerDependency> deps = it.value()->dependencies();
if ( deps.contains( layer->id() ) )

0 comments on commit a73eace

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