Skip to content
Permalink
Browse files

Geopackage data items: added tooltip and fix connection storage

  • Loading branch information
elpaso committed Sep 18, 2017
1 parent f3d25c5 commit 420dc829f05ac0c586dddca7403fc2ce86c16c19
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/providers/ogr/qgsgeopackagedataitems.cpp
@@ -124,6 +124,7 @@ QgsGeoPackageCollectionItem::QgsGeoPackageCollectionItem( QgsDataItem *parent, c
: QgsDataCollectionItem( parent, name, path )
, mPath( path )
{
mToolTip = path;
mCapabilities |= Collapse;
}

@@ -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

0 comments on commit 420dc82

Please sign in to comment.
You can’t perform that action at this time.