Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Place new group after current item (for non-group current item)
See #6879
When current item is a group the behavior is still to append the
new group to the end of the child list (as before)
  • Loading branch information
Sandro Santilli committed Dec 26, 2012
1 parent 816c32b commit 7344368
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/legend/qgslegend.cpp
Expand Up @@ -213,6 +213,7 @@ int QgsLegend::addGroup( QString name, bool expand, QTreeWidgetItem* parent )
if ( nameEmpty )
name = getUniqueGroupName( tr( "group" ), groups() );
group = new QgsLegendGroup( this, name );
if ( parent ) moveItem( group, parent );
// TODO: warn if parent != NULL or invisibleRootItem ?
}

Expand Down

0 comments on commit 7344368

Please sign in to comment.