Organize: Update collection directory ID and song path immediately

Fixes #781
This commit is contained in:
Jonas Kvinge
2021-09-27 19:29:12 +02:00
parent 62e53b53f0
commit 8c6ad52437
8 changed files with 24 additions and 8 deletions

View File

@@ -256,11 +256,11 @@ void Organize::ProcessSomeFiles() {
files_with_errors_ << task.song_info_.song_.basefilename();
}
else {
if (job.remove_original_ && song.source() == Song::Source_Device) {
if (job.remove_original_) {
// Notify other aspects of system that song has been invalidated
QString root = destination_->LocalPath();
QFileInfo new_file = QFileInfo(root + "/" + task.song_info_.new_filename_);
emit SongPathChanged(song, new_file);
emit SongPathChanged(song, new_file, destination_->collection_directory_id());
}
if (job.mark_as_listened_) {
emit FileCopied(job.metadata_.id());