1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 03:40:16 +02:00

* Extra safety check.

This commit is contained in:
Christian Muehlhaeuser
2012-12-01 00:30:50 +01:00
parent 5d3a9e5932
commit 62feef3400

View File

@@ -134,6 +134,10 @@ PlayableProxyModelPlaylistInterface::tracks() const
void
PlayableProxyModelPlaylistInterface::setCurrentIndex( qint64 index )
{
Q_ASSERT( m_proxyModel );
if ( m_proxyModel.isNull() )
return;
PlayableItem* item = static_cast<PlayableItem*>( (void*)index );
if ( index < 0 || !item )
{