Skip to content

Commit

Permalink
Fix yesterday's changes to currentGroupNode() (fixes addition of groups)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Sep 6, 2014
1 parent 8d598d4 commit 07f1f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/layertree/qgslayertreeview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ QgsLayerTreeGroup* QgsLayerTreeView::currentGroupNode() const
{
QgsLayerTreeNode* parent = node->parent();
if ( QgsLayerTree::isGroup( parent ) )
return QgsLayerTree::toGroup( node );
return QgsLayerTree::toGroup( parent );
}

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

0 comments on commit 07f1f4a

Please sign in to comment.