From 748dade30472133a0c5b62f918cd8aae1f3f0f73 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 13 Jan 2010 13:48:57 +0100 Subject: [PATCH] fix adding tracks after current album --- src/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.cpp b/src/misc.cpp index 5b7e0f61..0003d01e 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -223,7 +223,7 @@ void SelectedItemsAdder::EnterPressed() } else if (pos == 3) // after currently playing album { - std::string album = myPlaylist->CurrentSong()->GetAlbum(); + std::string album = myPlaylist->NowPlayingSong()->GetAlbum(); int i; for (i = Mpd.GetCurrentSongPos()+1; i < int(myPlaylist->Items->Size()); ++i) if ((*myPlaylist->Items)[i].GetAlbum() != album)