Commit 06118441 authored by Scott Wheeler's avatar Scott Wheeler

Fix a crash on choosing back from while the first item is playing. Special

bonus point to Stephen for being the first one able to crash JuK so far.  :-)
(And sending this patch)

CCMAIL:stephen_douglas@yahoo.com

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