Skip to content

Commit d10c023

Browse files
committed
Use connection name to avoid closing default connection
No observable bad effects identified but the following warning looks suspicious: Warning: QSqlDatabasePrivate::addDatabase: duplicate connection name qt_sql_default_connection, old connection removed.
1 parent cd34da8 commit d10c023

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/core/qgsuserprofile.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const QString QgsUserProfile::alias() const
6767
return name();
6868
}
6969

70-
QSqlDatabase db = QSqlDatabase::addDatabase( QStringLiteral( "QSQLITE" ) );
70+
QSqlDatabase db = QSqlDatabase::addDatabase( QStringLiteral( "QSQLITE" ), QStringLiteral( "userprofile" ) );
7171
db.setDatabaseName( qgisDB() );
7272
if ( !db.open() )
7373
return name();

0 commit comments

Comments
 (0)