Avoid saving the playlist multiple times.
This commit is contained in:
parent
9b01c03f71
commit
d023b56cea
@ -151,11 +151,13 @@ void SongLoaderInserter::PartiallyFinished() {
|
||||
}
|
||||
|
||||
void SongLoaderInserter::EffectiveLoad() {
|
||||
SongList songs;
|
||||
for (SongLoader* loader : pending_async_) {
|
||||
loader->EffectiveSongsLoad();
|
||||
task_manager_->SetTaskProgress(async_load_id_, ++async_progress_);
|
||||
emit EffectiveLoadFinished(loader->songs());
|
||||
songs << loader->songs();
|
||||
}
|
||||
emit EffectiveLoadFinished(songs);
|
||||
task_manager_->SetTaskFinished(async_load_id_);
|
||||
|
||||
deleteLater();
|
||||
|
Loading…
x
Reference in New Issue
Block a user