From b58864e6820202927a2b4fee172d49bb9e035309 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 21 Mar 2009 13:41:53 +0100 Subject: [PATCH] fix bolding np song with 'repeat one' function enabled --- src/status.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/status.cpp b/src/status.cpp index 0eeea100..3f025fe6 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -324,10 +324,7 @@ void NcmpcppStatusChanged(Connection *Mpd, StatusChanges changed, void *) if (myPlaylist->isPlaying()) { if (Config.repeat_one_mode && repeat_one_allowed) - { - std::swap(myPlaylist->NowPlaying, myPlaylist->OldPlaying); - Mpd->Play(myPlaylist->NowPlaying); - } + Mpd->Play(myPlaylist->OldPlaying); np = Mpd->GetCurrentSong(); WindowTitle(utf_to_locale_cpy(np.toString(Config.song_window_title_format))); if (Config.autocenter_mode && !myPlaylist->Main()->isFiltered())