aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-22 00:13:39 +0200
committerMax Kellermann <max@duempel.org>2013-10-22 00:13:39 +0200
commit2d696f46c3ba84b0b2925788de99979b861f6eff (patch)
tree2fa26f61062a904be226b137d9c8a71d61c34765 /src
parent2f43e4bc668f04a222500ab34536ef00149e209f (diff)
downloadmpd-2d696f46c3ba84b0b2925788de99979b861f6eff.tar.gz
mpd-2d696f46c3ba84b0b2925788de99979b861f6eff.tar.xz
mpd-2d696f46c3ba84b0b2925788de99979b861f6eff.zip
PlaylistEdit: compare Song URIs in DeleteSong()
Fixes purging deleted songs from the queue after update. Fixes regression from commit e96779d.
Diffstat (limited to 'src')
-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);
}