From a77bd03e53b85ff1f80c58a744a44c57eed9fa9d Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Tue, 14 Jul 2009 14:06:36 +0200 Subject: [PATCH] update header window after going to now playing song in browser --- src/ncmpcpp.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index 281feab9..0a936f07 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -1162,9 +1162,11 @@ int main(int argc, char *argv[]) } else if (myScreen == myBrowser) { - const Song *s = myPlaylist->NowPlayingSong(); - if (s) + if (const Song *s = myPlaylist->NowPlayingSong()) + { myBrowser->LocateSong(*s); + RedrawHeader = 1; + } } } else if (Keypressed(input, Key.ToggleRepeat))