1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

* Correctly call PlaylistInterface's base-method in TreeProxyModelPlaylistInterface::setCurrentIndex.

This commit is contained in:
Christian Muehlhaeuser
2012-12-04 03:14:44 +01:00
parent fa0eaee3c8
commit 4467202c3b

View File

@@ -70,6 +70,8 @@ TreeProxyModelPlaylistInterface::trackCount() const
void void
TreeProxyModelPlaylistInterface::setCurrentIndex( qint64 index ) TreeProxyModelPlaylistInterface::setCurrentIndex( qint64 index )
{ {
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 )
{ {