diff options
Diffstat (limited to '')
-rw-r--r-- | src/db/DatabaseQueue.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/DatabaseQueue.cxx b/src/db/DatabaseQueue.cxx index ee1dbd57c..f2a0951a6 100644 --- a/src/db/DatabaseQueue.cxx +++ b/src/db/DatabaseQueue.cxx @@ -22,6 +22,7 @@ #include "DatabaseGlue.hxx" #include "DatabasePlugin.hxx" #include "Partition.hxx" +#include "Instance.hxx" #include "util/Error.hxx" #include "DetachedSong.hxx" #include "Mapper.hxx" @@ -47,7 +48,7 @@ bool AddFromDatabase(Partition &partition, const DatabaseSelection &selection, Error &error) { - const Database *db = GetDatabase(error); + const Database *db = partition.instance.GetDatabase(error); if (db == nullptr) return false; |