1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 11:19:18 +01:00

Fix database test

This commit is contained in:
David Sansome 2010-12-05 12:53:12 +00:00
parent 3a4fb85744
commit cef02b4f61

View File

@ -410,7 +410,10 @@ QSqlDatabase Database::Connect() {
// Attach external databases
foreach (const QString& key, attached_databases_.keys()) {
const QString filename = attached_databases_[key].filename_;
QString filename = attached_databases_[key].filename_;
if (!injected_database_name_.isNull())
filename = injected_database_name_;
// Attach the db
QSqlQuery q("ATTACH DATABASE :filename AS :alias", db);