1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-30 17:14:58 +01:00

Fix song_id check

This commit is contained in:
Jonas Kvinge 2020-04-13 04:17:45 +02:00
parent 5591472dbd
commit be8228e33c

View File

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