mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Call parent's base-method after changing the current index.
This commit is contained in:
@@ -90,8 +90,6 @@ PlayableProxyModelPlaylistInterface::setCurrentIndex( qint64 index )
|
|||||||
if ( m_proxyModel.isNull() )
|
if ( m_proxyModel.isNull() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
PlaylistInterface::setCurrentIndex( index );
|
|
||||||
|
|
||||||
PlayableItem* item = static_cast<PlayableItem*>( (void*)index );
|
PlayableItem* item = static_cast<PlayableItem*>( (void*)index );
|
||||||
if ( index < 0 || !item )
|
if ( index < 0 || !item )
|
||||||
{
|
{
|
||||||
@@ -116,6 +114,8 @@ PlayableProxyModelPlaylistInterface::setCurrentIndex( qint64 index )
|
|||||||
m_shuffleHistory << queryAt( index );
|
m_shuffleHistory << queryAt( index );
|
||||||
m_shuffleCache = QPersistentModelIndex();
|
m_shuffleCache = QPersistentModelIndex();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PlaylistInterface::setCurrentIndex( index );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user