Browse files

* Fixed crash in new shuffle mode.

  • Loading branch information...
1 parent 40966c0 commit d7145e11990c289daa1c2daef8e79f42f4cf1715 @muesli muesli committed Nov 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/libtomahawk/playlist/PlayableProxyModelPlaylistInterface.cpp
View
2 src/libtomahawk/playlist/PlayableProxyModelPlaylistInterface.cpp
@@ -103,7 +103,7 @@ PlayableProxyModelPlaylistInterface::siblingItem( int itemsAway, bool readOnly )
PlayableProxyModel* proxyModel = m_proxyModel.data();
- while ( m_shuffleHistory.count() >= proxyModel->rowCount() )
+ while ( m_shuffleHistory.count() && m_shuffleHistory.count() >= proxyModel->rowCount() )
{
m_shuffleHistory.removeFirst();
}

0 comments on commit d7145e1

Please sign in to comment.