Do AddOrUpdateSongs in database thread

This commit is contained in:
Jonas Kvinge
2020-05-12 18:45:24 +02:00
parent c8d5f03070
commit 2bcad9b637
4 changed files with 10 additions and 4 deletions

View File

@@ -411,6 +411,10 @@ void CollectionBackend::AddOrUpdateSubdirs(const SubdirectoryList &subdirs) {
}
void CollectionBackend::AddOrUpdateSongsAsync(const SongList &songs) {
metaObject()->invokeMethod(this, "AddOrUpdateSongs", Qt::QueuedConnection, Q_ARG(SongList, songs));
}
void CollectionBackend::AddOrUpdateSongs(const SongList &songs) {
QMutexLocker l(db_->Mutex());