Avoid saving the playlist multiple times.

This commit is contained in:
Alexander Bikadorov 2014-03-18 16:13:38 +01:00
parent 9b01c03f71
commit d023b56cea
1 changed files with 3 additions and 1 deletions

View File

@ -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();