mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
* Safety check in PlayableProxyModelPlaylistInterface.
This commit is contained in:
@@ -196,7 +196,7 @@ PlayableProxyModelPlaylistInterface::siblingIndex( int itemsAway, qint64 rootInd
|
||||
else
|
||||
{
|
||||
PlayableItem* pitem = static_cast<PlayableItem*>( (void*)rootIndex );
|
||||
if ( !pitem )
|
||||
if ( !pitem || !pitem->index.isValid() )
|
||||
return -1;
|
||||
|
||||
idx = proxyModel->mapFromSource( pitem->index );
|
||||
|
Reference in New Issue
Block a user