From fb634bc2d41d40e55ecfa23dc39094c007b8e621 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 5 Jan 2021 22:14:18 +0100 Subject: [PATCH] Let watcher handle update of collection songs when organizing Fixes bug duplicating songs in the db when moving songs across collection id's. Fixes #623 --- 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 e72db7cbe..98b7c4458 100644 --- a/src/organize/organize.cpp +++ b/src/organize/organize.cpp @@ -238,7 +238,7 @@ void Organize::ProcessSomeFiles() { files_with_errors_ << task.song_info_.song_.basefilename(); } else { - if (job.remove_original_) { + if (job.remove_original_ && song.source() == Song::Source_Device) { // Notify other aspects of system that song has been invalidated QString root = destination_->LocalPath(); QFileInfo new_file = QFileInfo(root + "/" + task.song_info_.new_filename_);