Skip to content

Commit

Permalink
fix - removes layers from project if they exist there
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Jan 3, 2019
1 parent 81faf95 commit 5a75195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/ogr/qgsgeopackagedataitems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ bool QgsGeoPackageAbstractLayerItem::deleteLayer()
return true;
}

if ( layersList.isEmpty() )
if ( !layersList.isEmpty() )
{
QgsProject::instance()->removeMapLayers( layersList );
}
Expand Down

0 comments on commit 5a75195

Please sign in to comment.