Skip to content
Permalink
Browse files

Fix geopackage delete connection

  • Loading branch information
elpaso committed Sep 14, 2017
1 parent 16c6bf9 commit 591b01ec749adb237db6357dd593bfc2111e0bef
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/ogr/qgsgeopackagedataitems.cpp
@@ -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.
You can’t perform that action at this time.