Skip to content
Permalink
Browse files
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 7344368abefb149c05868c23cb0774b17653ea67
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/app/legend/qgslegend.cpp
@@ -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 ?
}

0 comments on commit 7344368

Please sign in to comment.