From 206c2570d0101118142442c672e0fff3391ee1e2 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Tue, 14 Apr 2009 07:01:22 +0200 Subject: [PATCH] fix bug 2252 --- src/status.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status.cpp b/src/status.cpp index c1de4054..5cbf101c 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -233,13 +233,14 @@ void NcmpcppStatusChanged(Connection *Mpd, StatusChanges changed, void *) { // if song's already in playlist, replace it with a new one myPlaylist->Main()->at(pos) = **it; + myPlaylist->Main()->at(pos).CopyPtr(0); } else { // otherwise just add it to playlist myPlaylist->Main()->AddOption(**it, myPlaylist->NowPlaying == pos); + myPlaylist->Main()->Back().CopyPtr(0); } - myPlaylist->Main()->at(pos).CopyPtr(0); (*it)->NullMe(); }