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

@@ -261,7 +261,7 @@ void SelectedItemsAdder::addAfterCurrentSong() const
{
if (!Mpd.isPlaying())
return;
size_t pos = Mpd.GetCurrentlyPlayingSongPos();
size_t pos = Mpd.GetCurrentSongPos();
++pos;
bool success = addSongsToPlaylist(m_selected_items, false, pos);
if (success)
@@ -273,7 +273,7 @@ void SelectedItemsAdder::addAfterCurrentAlbum() const
if (!Mpd.isPlaying())
return;
auto &pl = myPlaylist->main();
size_t pos = Mpd.GetCurrentlyPlayingSongPos();
size_t pos = Mpd.GetCurrentSongPos();
withUnfilteredMenu(pl, [&pos, &pl]() {
std::string album = pl[pos].value().getAlbum();
while (pos < pl.size() && pl[pos].value().getAlbum() == album)