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 637c6d3 commit ba309cb1112c02b7c428069d4b35486e22cd8d17
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/providers/ogr/qgsogrprovider.cpp
@@ -677,9 +677,11 @@ QStringList QgsOgrProvider::subLayers() const
continue;
}

if ( !mIsSubLayer && theLayerName == "layer_styles" )
if ( !mIsSubLayer && ( theLayerName == "layer_styles" ||
theLayerName == "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 ba309cb

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