Skip to content

Commit

Permalink
Merge pull request #7001 from m-kuhn/userprofile-database-name
Browse files Browse the repository at this point in the history
Use connection name to avoid closing default connection
  • Loading branch information
m-kuhn committed May 17, 2018
2 parents 87a60d4 + d10c023 commit d5cec14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsuserprofile.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit d5cec14

Please sign in to comment.