Skip to content

Commit

Permalink
Fix geopackage delete connection
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Sep 14, 2017
1 parent 16c6bf9 commit 591b01e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/ogr/qgsgeopackagedataitems.cpp
Expand Up @@ -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();
}

Expand All @@ -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() );
Expand Down

0 comments on commit 591b01e

Please sign in to comment.