Skip to content

Commit 420dc82

Browse files
committed
Geopackage data items: added tooltip and fix connection storage
1 parent f3d25c5 commit 420dc82

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/providers/ogr/qgsgeopackagedataitems.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ QgsGeoPackageCollectionItem::QgsGeoPackageCollectionItem( QgsDataItem *parent, c
124124
: QgsDataCollectionItem( parent, name, path )
125125
, mPath( path )
126126
{
127+
mToolTip = path;
127128
mCapabilities |= Collapse;
128129
}
129130

@@ -510,9 +511,9 @@ void QgsGeoPackageCollectionItem::addTable()
510511

511512
void QgsGeoPackageCollectionItem::addConnection()
512513
{
513-
QgsOgrDbConnection connection( mName, QStringLiteral( "GeoPackage" ) );
514+
QgsOgrDbConnection connection( mName, QStringLiteral( "GPKG" ) );
514515
connection.save();
515-
emit connectionsChanged();
516+
mParent->refreshConnections();
516517
}
517518

518519
#endif

0 commit comments

Comments
 (0)