mdp: remove GetCurrentlyPlayingSongPos

This commit is contained in:
Andrzej Rybczak
2012-09-18 21:34:14 +02:00
parent e108604641
commit b57428db90
7 changed files with 10 additions and 16 deletions

View File

@@ -1200,7 +1200,7 @@ void TogglePlayingSongCentering::Run()
Config.autocenter_mode = !Config.autocenter_mode;
Statusbar::msg("Centering playing song: %s", Config.autocenter_mode ? "On" : "Off");
if (Config.autocenter_mode && Mpd.isPlaying() && !myPlaylist->main().isFiltered())
myPlaylist->main().highlight(Mpd.GetCurrentlyPlayingSongPos());
myPlaylist->main().highlight(Mpd.GetCurrentSongPos());
}
void UpdateDatabase::Run()
@@ -1226,7 +1226,7 @@ bool JumpToPlayingSong::canBeRun() const
void JumpToPlayingSong::Run()
{
if (myScreen == myPlaylist)
myPlaylist->main().highlight(Mpd.GetCurrentlyPlayingSongPos());
myPlaylist->main().highlight(Mpd.GetCurrentSongPos());
else if (myScreen == myBrowser)
{
myBrowser->LocateSong(myPlaylist->nowPlayingSong());