update header window after going to now playing song in browser

master
Andrzej Rybczak 17 years ago
parent caec71134e
commit a77bd03e53
  1. 6
      src/ncmpcpp.cpp

@ -1162,9 +1162,11 @@ int main(int argc, char *argv[])
} }
else if (myScreen == myBrowser) else if (myScreen == myBrowser)
{ {
const Song *s = myPlaylist->NowPlayingSong(); if (const Song *s = myPlaylist->NowPlayingSong())
if (s) {
myBrowser->LocateSong(*s); myBrowser->LocateSong(*s);
RedrawHeader = 1;
}
} }
} }
else if (Keypressed(input, Key.ToggleRepeat)) else if (Keypressed(input, Key.ToggleRepeat))

Loading…
Cancel
Save