Skip to content

Commit

Permalink
fix crash when connecting layerOrderChanged signal
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 29, 2018
1 parent b00b3f6 commit 4668d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/layertree/qgslayertree.cpp
Expand Up @@ -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 )
Expand All @@ -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
Expand Down

0 comments on commit 4668d22

Please sign in to comment.