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:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user