Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Geopackage data items: added tooltip and fix connection storage
  • Loading branch information
elpaso committed Sep 18, 2017
1 parent f3d25c5 commit 420dc82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/providers/ogr/qgsgeopackagedataitems.cpp
Expand Up @@ -124,6 +124,7 @@ QgsGeoPackageCollectionItem::QgsGeoPackageCollectionItem( QgsDataItem *parent, c
: QgsDataCollectionItem( parent, name, path )
, mPath( path )
{
mToolTip = path;
mCapabilities |= Collapse;
}

Expand Down Expand Up @@ -510,9 +511,9 @@ void QgsGeoPackageCollectionItem::addTable()

void QgsGeoPackageCollectionItem::addConnection()
{
QgsOgrDbConnection connection( mName, QStringLiteral( "GeoPackage" ) );
QgsOgrDbConnection connection( mName, QStringLiteral( "GPKG" ) );
connection.save();
emit connectionsChanged();
mParent->refreshConnections();
}

#endif
Expand Down

0 comments on commit 420dc82

Please sign in to comment.