Skip to content
Permalink
Browse files
Fix geopackage delete connection
  • Loading branch information
elpaso committed Sep 14, 2017
1 parent 16c6bf9 commit 591b01e
Showing 1 changed file with 2 additions and 2 deletions.
@@ -448,7 +448,7 @@ bool QgsGeoPackageConnectionItem::deleteGeoPackageRasterLayer( const QString &ur

void QgsGeoPackageConnectionItem::deleteConnection()
{
QgsOgrDbConnection::deleteConnection( name(), QStringLiteral( "GeoPackage" ) );
QgsOgrDbConnection::deleteConnection( name(), QStringLiteral( "GPKG" ) );
mParent->refreshConnections();
}

@@ -458,7 +458,7 @@ void QgsGeoPackageConnectionItem::addTable()
QgsNewGeoPackageLayerDialog dialog( nullptr );
QFileInfo fileInfo( mPath );
QString connName = fileInfo.fileName();
QgsOgrDbConnection connection( connName, QStringLiteral( "GeoPackage" ) );
QgsOgrDbConnection connection( connName, QStringLiteral( "GPKG" ) );
if ( ! connection.path().isEmpty() )
{
dialog.setDatabasePath( connection.path() );

0 comments on commit 591b01e

Please sign in to comment.