aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/PlaylistEdit.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PlaylistEdit.cxx b/src/PlaylistEdit.cxx
index d4515d647..ff2ad5baa 100644
--- a/src/PlaylistEdit.cxx
+++ b/src/PlaylistEdit.cxx
@@ -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);
}