update header window after going to now playing song in browser

This commit is contained in:
Andrzej Rybczak
2009-07-14 14:06:36 +02:00
parent caec71134e
commit a77bd03e53

View File

@@ -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))