Commit 15db09bc authored by Frerich Raabe's avatar Frerich Raabe
Browse files

- Refactored this chunk of conditional logic so that tired minds like mine

  can tell what's going on, too.

svn path=/trunk/kdemultimedia/juk/; revision=217720
parent 8a1f339b
......@@ -371,12 +371,11 @@ PlaylistItem *Playlist::previousItem(PlaylistItem *current, bool random)
if(random && !m_history.isEmpty())
return m_history.pop();
else {
return current;
return static_cast<PlaylistItem *>(current->itemAbove());
QString Playlist::name() const
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