Set source in backends to fix losing source in InitFromFilePartial()

when updating path
This commit is contained in:
Jonas Kvinge
2019-07-02 00:48:40 +02:00
parent 9105b7615c
commit ba314dd734
8 changed files with 16 additions and 11 deletions

View File

@@ -55,7 +55,7 @@ SCollection::SCollection(Application *app, QObject *parent)
backend_ = new CollectionBackend();
backend()->moveToThread(app->database()->thread());
backend_->Init(app->database(), kSongsTable, kDirsTable, kSubdirsTable, kFtsTable);
backend_->Init(app->database(), Song::Source_Collection, kSongsTable, kDirsTable, kSubdirsTable, kFtsTable);
model_ = new CollectionModel(backend_, app_, this);