From 1ff2bfd390703026d3f4315aa10f8d2b0d950c91 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 28 Dec 2023 23:30:07 +0100 Subject: [PATCH] Organize: Only update song path for collection songs Possible fix for #1341 --- src/organize/organize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/organize/organize.cpp b/src/organize/organize.cpp index 81f459b30c..9c99c915b2 100644 --- a/src/organize/organize.cpp +++ b/src/organize/organize.cpp @@ -251,7 +251,7 @@ void Organize::ProcessSomeFiles() { job.progress_ = std::bind(&Organize::SetSongProgress, this, std::placeholders::_1, !task.transcoded_filename_.isEmpty()); if (destination_->CopyToStorage(job)) { - if (job.remove_original_ && (destination_->source() == Song::Source::Collection || destination_->source() == Song::Source::Device)) { + if (job.remove_original_ && song.is_collection_song() && destination_->source() == Song::Source::Collection) { // Notify other aspects of system that song has been invalidated QString root = destination_->LocalPath(); QFileInfo new_file = QFileInfo(root + "/" + task.song_info_.new_filename_);