Skip to content
Permalink
Browse files

Restore layer bridge

Fixes #40050
  • Loading branch information
elpaso committed Nov 14, 2020
1 parent ee89b8e commit c9bba965aebd6e72e9a079e4077994f11bbdc902
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 c9bba96

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