Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
When adding a node to the layer tree, ensure the initial expansion st…
…ate of the node is respected
  • Loading branch information
nyalldawson committed May 3, 2023
1 parent f8ff710 commit 01ba0b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/layertree/qgslayertreenode.cpp
Expand Up @@ -284,6 +284,8 @@ void QgsLayerTreeNode::insertChildrenPrivate( int index, const QList<QgsLayerTre
node->insertChildrenPrivate( -1, orphans );
}

// ensure initial expanded state for node is respected
emit expandedChanged( node, node->isExpanded() );
}
}

Expand Down

0 comments on commit 01ba0b2

Please sign in to comment.