mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Fix database test
This commit is contained in:
parent
3a4fb85744
commit
cef02b4f61
@ -410,7 +410,10 @@ QSqlDatabase Database::Connect() {
|
|||||||
|
|
||||||
// Attach external databases
|
// Attach external databases
|
||||||
foreach (const QString& key, attached_databases_.keys()) {
|
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
|
// Attach the db
|
||||||
QSqlQuery q("ATTACH DATABASE :filename AS :alias", db);
|
QSqlQuery q("ATTACH DATABASE :filename AS :alias", db);
|
||||||
|
Loading…
Reference in New Issue
Block a user