Skip to content
Permalink
Browse files

fix - removes layers from project if they exist there

  • Loading branch information
signedav committed Jan 3, 2019
1 parent 81faf95 commit 5a751950f8ffd167da9a03f0f77240662db26961
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/ogr/qgsgeopackagedataitems.cpp
@@ -506,7 +506,7 @@ bool QgsGeoPackageAbstractLayerItem::deleteLayer()
return true;
}

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

0 comments on commit 5a75195

Please sign in to comment.
You can’t perform that action at this time.