Skip to content
Permalink
Browse files

Fix #41343 d&d group has no name

  • Loading branch information
elpaso authored and nyalldawson committed Feb 8, 2021
1 parent fb0ace3 commit 1f8c5e8fb0256385acbc3358e95645354df0ea62
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgisapp.cpp
@@ -6238,6 +6238,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

0 comments on commit 1f8c5e8

Please sign in to comment.