Commit 2d696f46 authored by Max Kellermann's avatar Max Kellermann

PlaylistEdit: compare Song URIs in DeleteSong()

Fixes purging deleted songs from the queue after update. Fixes regression from commit e96779de.
parent 2f43e4bc
......@@ -323,8 +323,7 @@ void
playlist::DeleteSong(struct player_control &pc, const struct Song &song)
{
for (int i = queue.GetLength() - 1; i >= 0; --i)
// TODO: compare URI instead of pointer
if (&song == &queue.Get(i))
if (SongEquals(song, queue.Get(i)))
DeletePosition(pc, i);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment