From 926c8ad16b585ac19dd386e80fe9d859a414bcf6 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 9 Dec 2012 09:08:33 +0100 Subject: [PATCH] * Call parent's base-method after changing the current index. --- .../playlist/PlayableProxyModelPlaylistInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/playlist/PlayableProxyModelPlaylistInterface.cpp b/src/libtomahawk/playlist/PlayableProxyModelPlaylistInterface.cpp index 1fffa4774..827e02bc7 100644 --- a/src/libtomahawk/playlist/PlayableProxyModelPlaylistInterface.cpp +++ b/src/libtomahawk/playlist/PlayableProxyModelPlaylistInterface.cpp @@ -90,8 +90,6 @@ PlayableProxyModelPlaylistInterface::setCurrentIndex( qint64 index ) if ( m_proxyModel.isNull() ) return; - PlaylistInterface::setCurrentIndex( index ); - PlayableItem* item = static_cast( (void*)index ); if ( index < 0 || !item ) { @@ -116,6 +114,8 @@ PlayableProxyModelPlaylistInterface::setCurrentIndex( qint64 index ) m_shuffleHistory << queryAt( index ); m_shuffleCache = QPersistentModelIndex(); } + + PlaylistInterface::setCurrentIndex( index ); }