mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
* Extra safety check.
This commit is contained in:
@@ -134,6 +134,10 @@ PlayableProxyModelPlaylistInterface::tracks() const
|
|||||||
void
|
void
|
||||||
PlayableProxyModelPlaylistInterface::setCurrentIndex( qint64 index )
|
PlayableProxyModelPlaylistInterface::setCurrentIndex( qint64 index )
|
||||||
{
|
{
|
||||||
|
Q_ASSERT( m_proxyModel );
|
||||||
|
if ( m_proxyModel.isNull() )
|
||||||
|
return;
|
||||||
|
|
||||||
PlayableItem* item = static_cast<PlayableItem*>( (void*)index );
|
PlayableItem* item = static_cast<PlayableItem*>( (void*)index );
|
||||||
if ( index < 0 || !item )
|
if ( index < 0 || !item )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user