Skip to content

Commit 07f1f4a

Browse files
committed
Fix yesterday's changes to currentGroupNode() (fixes addition of groups)
1 parent 8d598d4 commit 07f1f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/layertree/qgslayertreeview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ QgsLayerTreeGroup* QgsLayerTreeView::currentGroupNode() const
222222
{
223223
QgsLayerTreeNode* parent = node->parent();
224224
if ( QgsLayerTree::isGroup( parent ) )
225-
return QgsLayerTree::toGroup( node );
225+
return QgsLayerTree::toGroup( parent );
226226
}
227227

228228
if ( QgsLayerTreeModelLegendNode* legendNode = layerTreeModel()->index2legendNode( selectionModel()->currentIndex() ) )

0 commit comments

Comments
 (0)