Skip to content
Permalink
Browse files
Merge pull request #44980 from pblottiere/fix_gpkg_path
Fix geopackage connection
  • Loading branch information
elpaso committed Sep 9, 2021
2 parents c917e02 + ac1c983 commit a7586e9cdccade0b2076885bb8801fd4b6a76233
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/providers/ogr/qgsogrproviderutils.cpp
@@ -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;
}

0 comments on commit a7586e9

Please sign in to comment.