Skip to content

Commit d5cec14

Browse files
authoredMay 17, 2018
Merge pull request #7001 from m-kuhn/userprofile-database-name
Use connection name to avoid closing default connection
2 parents 87a60d4 + d10c023 commit d5cec14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎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)
Please sign in to comment.