We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d598d4 commit 07f1f4aCopy full SHA for 07f1f4a
src/gui/layertree/qgslayertreeview.cpp
@@ -222,7 +222,7 @@ QgsLayerTreeGroup* QgsLayerTreeView::currentGroupNode() const
222
{
223
QgsLayerTreeNode* parent = node->parent();
224
if ( QgsLayerTree::isGroup( parent ) )
225
- return QgsLayerTree::toGroup( node );
+ return QgsLayerTree::toGroup( parent );
226
}
227
228
if ( QgsLayerTreeModelLegendNode* legendNode = layerTreeModel()->index2legendNode( selectionModel()->currentIndex() ) )
0 commit comments