1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

* Call parent's base-method after changing the current index.

This commit is contained in:
Christian Muehlhaeuser 2012-12-09 09:08:33 +01:00
parent 73ef7e2a4b
commit 926c8ad16b

View File

@ -90,8 +90,6 @@ PlayableProxyModelPlaylistInterface::setCurrentIndex( qint64 index )
if ( m_proxyModel.isNull() )
return;
PlaylistInterface::setCurrentIndex( index );
PlayableItem* item = static_cast<PlayableItem*>( (void*)index );
if ( index < 0 || !item )
{
@ -116,6 +114,8 @@ PlayableProxyModelPlaylistInterface::setCurrentIndex( qint64 index )
m_shuffleHistory << queryAt( index );
m_shuffleCache = QPersistentModelIndex();
}
PlaylistInterface::setCurrentIndex( index );
}