mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 04:51:53 +02:00
* Safety check in PlayableProxyModelPlaylistInterface.
This commit is contained in:
parent
f059644df5
commit
595dcac264
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user