Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Release datasource when cancelling loading of OGR sublayers
  • Loading branch information
agiudiceandrea authored and nyalldawson committed May 7, 2021
1 parent 8b35677 commit e8630d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -6163,7 +6163,11 @@ QList<QgsMapLayer *> QgisApp::askUserForOGRSublayers( QgsVectorLayer *&parentLay
chooseSublayersDialog.populateLayerTable( list );

if ( !chooseSublayersDialog.exec() )
{
delete parentLayer;
parentLayer = nullptr;
return result;
}

const bool addToGroup = chooseSublayersDialog.addToGroupCheckbox();

Expand Down

0 comments on commit e8630d7

Please sign in to comment.