1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

* Fixed crash in TreeProxyModel.

This commit is contained in:
Christian Muehlhaeuser 2011-09-23 12:23:37 +02:00
parent f520b6d5d0
commit 9eeed5223c

View File

@ -329,7 +329,7 @@ TreeProxyModel::siblingItem( int itemsAway, bool readOnly )
break;
TreeModelItem* item = itemFromIndex( mapToSource( idx ) );
if ( item && item->result()->isOnline() )
if ( item && !item->result().isNull() && item->result()->isOnline() )
{
qDebug() << "Next PlaylistItem found:" << item->result()->url();
if ( !readOnly )