Skip to content
Permalink
Browse files

Merge pull request #7001 from m-kuhn/userprofile-database-name

Use connection name to avoid closing default connection
  • Loading branch information
m-kuhn committed May 17, 2018
2 parents 87a60d4 + d10c023 commit d5cec14699ea03d0be8b6afd6e57a43b99dc2d1d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsuserprofile.cpp
@@ -67,7 +67,7 @@ const QString QgsUserProfile::alias() const
return name();
}

QSqlDatabase db = QSqlDatabase::addDatabase( QStringLiteral( "QSQLITE" ) );
QSqlDatabase db = QSqlDatabase::addDatabase( QStringLiteral( "QSQLITE" ), QStringLiteral( "userprofile" ) );
db.setDatabaseName( qgisDB() );
if ( !db.open() )
return name();

0 comments on commit d5cec14

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