Skip to content

Commit

Permalink
Fix #41343 d&d group has no name
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and github-actions[bot] committed Feb 8, 2021
1 parent 39f4eda commit 2f8d82c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -6116,6 +6116,11 @@ QList<QgsMapLayer *> QgisApp::askUserForOGRSublayers( QgsVectorLayer *&parentLay
const auto constSelection = chooseSublayersDialog.selection();
const QString providerType = parentLayer->providerType();

if ( name.isEmpty() )
{
name = fileName;
}

// We delete the parent layer now, to be sure in the GeoPackage case that
// when several sublayers are selected, they will use the same GDAL dataset
// This is critical to make project transactions work, as in
Expand Down

0 comments on commit 2f8d82c

Please sign in to comment.