Organize: Only update song path for collection songs

Possible fix for #1341
This commit is contained in:
Jonas Kvinge 2023-12-28 23:30:07 +01:00
parent a35fa5b158
commit 1ff2bfd390
1 changed files with 1 additions and 1 deletions

View File

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