mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 01:09:42 +01:00
* Extra safety check.
This commit is contained in:
parent
5d3a9e5932
commit
62feef3400
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user