Skip to content

Commit

Permalink
Merge pull request #44980 from pblottiere/fix_gpkg_path
Browse files Browse the repository at this point in the history
Fix geopackage connection
  • Loading branch information
elpaso committed Sep 9, 2021
2 parents c917e02 + ac1c983 commit a7586e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/providers/ogr/qgsogrproviderutils.cpp
Expand Up @@ -2533,6 +2533,7 @@ bool QgsOgrProviderUtils::saveConnection( const QString &path, const QString &og
{
QgsProviderMetadata *providerMetadata = QgsProviderRegistry::instance()->providerMetadata( QStringLiteral( "ogr" ) );
QgsGeoPackageProviderConnection *providerConnection = static_cast<QgsGeoPackageProviderConnection *>( providerMetadata->createConnection( connName ) );
providerConnection->setUri( path );
providerMetadata->saveConnection( providerConnection, connName );
return true;
}
Expand Down

0 comments on commit a7586e9

Please sign in to comment.