Navigation Menu

Skip to content

Commit

Permalink
Release datasource when cancelling loading of OGR sublayers
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored and github-actions[bot] committed May 7, 2021
1 parent bca1b83 commit b579f9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -6099,7 +6099,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 b579f9e

Please sign in to comment.