From be8228e33c221034b5932ab64b96668098a81971 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 13 Apr 2020 04:17:45 +0200 Subject: [PATCH] Fix song_id check --- src/collection/collectionbackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collection/collectionbackend.cpp b/src/collection/collectionbackend.cpp index 1f39c377c..af97eea42 100644 --- a/src/collection/collectionbackend.cpp +++ b/src/collection/collectionbackend.cpp @@ -467,7 +467,7 @@ void CollectionBackend::AddOrUpdateSongs(const SongList &songs) { continue; } - else if (song.song_id() != -1) { // Song has a unique id, check if the song exists. + else if (!song.song_id().isEmpty()) { // Song has a unique id, check if the song exists. // Get the previous song data first Song old_song(GetSongBySongId(song.song_id()));