Skip to content
Permalink
Browse files

Merge pull request #40052 from elpaso/bugfix-gh40050-phantom-layers

Restore layer bridge
  • Loading branch information
elpaso committed Nov 15, 2020
2 parents e0574c9 + c9bba96 commit 1d38e6fbe4abd01cc2893518ccbe3d67670e1e9e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layertree/qgslayertreeregistrybridge.cpp
@@ -118,7 +118,7 @@ static void _collectLayerIdsInGroup( QgsLayerTreeGroup *group, int indexFrom, in

void QgsLayerTreeRegistryBridge::groupWillRemoveChildren( QgsLayerTreeNode *node, int indexFrom, int indexTo )
{
if ( mRegistryRemovingLayers || QgsLayerTree::isGroup( node ) )
if ( mRegistryRemovingLayers )
return; // do not try to remove those layers again

Q_ASSERT( mLayerIdsForRemoval.isEmpty() );

0 comments on commit 1d38e6f

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