1
0
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:
Christian Muehlhaeuser 2012-12-04 05:44:45 +01:00
parent f059644df5
commit 595dcac264

View File

@ -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 );