1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 13:47:26 +02: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; break;
TreeModelItem* item = itemFromIndex( mapToSource( idx ) ); 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(); qDebug() << "Next PlaylistItem found:" << item->result()->url();
if ( !readOnly ) if ( !readOnly )