mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[layertree] Fix #10373 (embedded group not loaded if with relative path)
This commit is contained in:
parent
df09910846
commit
48ee84b1bf
@ -966,7 +966,11 @@ void QgsProject::loadEmbeddedNodes( QgsLayerTreeGroup* group )
|
||||
QgsLayerTreeGroup* childGroup = QgsLayerTree::toGroup( child );
|
||||
if ( childGroup->customProperty( "embedded" ).toInt() )
|
||||
{
|
||||
QgsLayerTreeGroup* newGroup = createEmbeddedGroup( childGroup->name(), childGroup->customProperty( "embedded_project" ).toString() );
|
||||
// make sure to convert the path from relative to absolute
|
||||
QString projectPath = readPath( childGroup->customProperty( "embedded_project" ).toString() );
|
||||
childGroup->setCustomProperty( "embedded_project", projectPath );
|
||||
|
||||
QgsLayerTreeGroup* newGroup = createEmbeddedGroup( childGroup->name(), projectPath );
|
||||
if ( newGroup )
|
||||
{
|
||||
QList<QgsLayerTreeNode*> clonedChildren;
|
||||
|
Loading…
x
Reference in New Issue
Block a user