Revert "fix bug 2252"

This reverts commit 206c2570d0.
This commit is contained in:
Andrzej Rybczak
2009-04-14 07:16:21 +02:00
parent bf3e2546d8
commit 97b9f15898

View File

@@ -234,14 +234,13 @@ 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();
}