Skip to content

Commit

Permalink
Organize: Only update song path for collection songs
Browse files Browse the repository at this point in the history
Possible fix for #1341
  • Loading branch information
jonaski committed Dec 28, 2023
1 parent a35fa5b commit 1ff2bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/organize/organize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down

0 comments on commit 1ff2bfd

Please sign in to comment.