mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
parent
a92a0d1eb5
commit
816c32bd06
@ -212,7 +212,8 @@ int QgsLegend::addGroup( QString name, bool expand, QTreeWidgetItem* parent )
|
||||
{
|
||||
if ( nameEmpty )
|
||||
name = getUniqueGroupName( tr( "group" ), groups() );
|
||||
group = new QgsLegendGroup( parent, name );
|
||||
group = new QgsLegendGroup( this, name );
|
||||
// TODO: warn if parent != NULL or invisibleRootItem ?
|
||||
}
|
||||
|
||||
QModelIndex groupIndex = indexFromItem( group );
|
||||
|
Loading…
x
Reference in New Issue
Block a user