Skip to content
Permalink
Browse files

[OGR provider] Do not list qgis_projects (from QgisGeoPackage plugin)…

… as sublayer
  • Loading branch information
rouault committed Oct 27, 2016
1 parent 11e5283 commit e67a47b9abe40ad4b143db7a09c52ff6cd39270c
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/providers/ogr/qgsogrprovider.cpp
@@ -682,9 +682,11 @@ QStringList QgsOgrProvider::subLayers() const
continue;
}

if ( !mIsSubLayer && theLayerName == "layer_styles" )
if ( !mIsSubLayer && ( theLayerName == QLatin1String( "layer_styles" ) ||
theLayerName == QLatin1String( "qgis_projects" ) ) )
{
// Ignore layer_styles layer
// Ignore layer_styles (coming from QGIS styling support) and
// qgis_projects (coming from http://plugins.qgis.org/plugins/QgisGeopackage/)
continue;
}

0 comments on commit e67a47b

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