Skip to content
Permalink
Browse files

fix crash when connecting layerOrderChanged signal

  • Loading branch information
3nids committed Oct 29, 2018
1 parent b00b3f6 commit 4668d226ebc63d56f1f8ade125b2058744c42178
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/layertree/qgslayertree.cpp
@@ -20,7 +20,7 @@
QgsLayerTree::QgsLayerTree()
{
connect( this, &QgsLayerTree::addedChildren, this, &QgsLayerTree::nodeAddedChildren );
connect( this, &QgsLayerTree::removedChildren, this, &QgsLayerTree::nodeRemovedChildren );
connect( this, &QgsLayerTree::willRemoveChildren, this, &QgsLayerTree::nodeRemovedChildren );
}

QgsLayerTree::QgsLayerTree( const QgsLayerTree &other )
@@ -29,7 +29,7 @@ QgsLayerTree::QgsLayerTree( const QgsLayerTree &other )
, mHasCustomLayerOrder( other.mHasCustomLayerOrder )
{
connect( this, &QgsLayerTree::addedChildren, this, &QgsLayerTree::nodeAddedChildren );
connect( this, &QgsLayerTree::removedChildren, this, &QgsLayerTree::nodeRemovedChildren );
connect( this, &QgsLayerTree::willRemoveChildren, this, &QgsLayerTree::nodeRemovedChildren );
}

QList<QgsMapLayer *> QgsLayerTree::customLayerOrder() const

0 comments on commit 4668d22

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