Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Read qgz project when embedding layers. Fixes #28280
(cherry picked from commit e5eb23e)
  • Loading branch information
pblottiere authored and nyalldawson committed Nov 21, 2019
1 parent 941a20a commit 71f2dd4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -11453,6 +11453,13 @@ void QgisApp::embedLayers()

QString projectFile = d.selectedProjectFile();

QgsProjectArchive archive;
if ( projectFile.endsWith( QLatin1String( ".qgz" ), Qt::CaseInsensitive ) )
{
archive.unzip( projectFile );
projectFile = archive.projectFile();
}

//groups
QStringList groups = d.selectedGroups();
QStringList::const_iterator groupIt = groups.constBegin();
Expand Down

0 comments on commit 71f2dd4

Please sign in to comment.