From 330284f03ef89ec3e5e4e0a7d8b76a17cc0b727a Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 5 Oct 2025 21:33:41 +0200 Subject: [PATCH] CollectionModel: Log when song already exists --- src/collection/collectionmodel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/collection/collectionmodel.cpp b/src/collection/collectionmodel.cpp index 259207b83..2ce762911 100644 --- a/src/collection/collectionmodel.cpp +++ b/src/collection/collectionmodel.cpp @@ -542,7 +542,10 @@ void CollectionModel::AddSongsInternal(const SongList &songs) { // Sanity check to make sure we don't add songs that are outside the user's filter if (!options_active_.filter_options.Matches(song)) continue; - if (song_nodes_.contains(song.id())) continue; + if (song_nodes_.contains(song.id())) { + qLog(Debug) << song.id() << song.title() << "already exists, skipping"; + continue; + } // Before we can add each song we need to make sure the required container items already exist in the tree. // These depend on which "group by" settings the user has on the collection.