Skip to content

Commit

Permalink
[OGR provider] Do not list qgis_projects (from QgisGeoPackage plugin)…
Browse files Browse the repository at this point in the history
… as sublayer
  • Loading branch information
rouault committed Oct 27, 2016
1 parent 637c6d3 commit ba309cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit ba309cb

Please sign in to comment.