selected items added: fix position in adding after current song

This commit is contained in:
Andrzej Rybczak
2012-09-16 03:04:37 +02:00
parent 42188b8768
commit e2c1c6f365

View File

@@ -262,6 +262,7 @@ void SelectedItemsAdder::addAfterCurrentSong() const
if (!Mpd.isPlaying())
return;
size_t pos = Mpd.GetCurrentlyPlayingSongPos();
++pos;
bool success = addSongsToPlaylist(m_selected_items, false, pos);
if (success)
exitSuccessfully();