mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-01 00:05:25 -04:00
[layertree] Only add layers to layer tree if the client wanted that
This commit is contained in:
parent
575e4698b0
commit
aa0512653a
@ -30,7 +30,7 @@ QgsLayerTreeRegistryBridge::QgsLayerTreeRegistryBridge( QgsLayerTreeGroup *root,
|
||||
, mInsertionPointGroup( root )
|
||||
, mInsertionPointIndex( 0 )
|
||||
{
|
||||
connect( QgsMapLayerRegistry::instance(), SIGNAL( layersAdded( QList<QgsMapLayer*> ) ), this, SLOT( layersAdded( QList<QgsMapLayer*> ) ) );
|
||||
connect( QgsMapLayerRegistry::instance(), SIGNAL( legendLayersAdded( QList<QgsMapLayer*> ) ), this, SLOT( layersAdded( QList<QgsMapLayer*> ) ) );
|
||||
connect( QgsMapLayerRegistry::instance(), SIGNAL( layersWillBeRemoved( QStringList ) ), this, SLOT( layersWillBeRemoved( QStringList ) ) );
|
||||
|
||||
connect( mRoot, SIGNAL( willRemoveChildren( QgsLayerTreeNode*, int, int ) ), this, SLOT( groupWillRemoveChildren( QgsLayerTreeNode*, int, int ) ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user