Commit d3a37960 authored by Frerich Raabe's avatar Frerich Raabe

- Don't take the first item of the currently viewed playlist, but the first

  item of the playlist which the currently played item belongs to.

svn path=/trunk/kdemultimedia/juk/; revision=214725
parent 5394794f
......@@ -118,7 +118,7 @@ QString PlaylistSplitter::playNextFile(bool random, bool loopPlaylist)
Playlist *p = static_cast<Playlist *>(m_playingItem->listView());
i = p->nextItem(m_playingItem, random);
if(!i && loopPlaylist)
i = static_cast<PlaylistItem *>(visiblePlaylist()->firstChild());
i = static_cast<PlaylistItem *>(p->firstChild());
}
else {
i = playlistSelection().getFirst();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment