Commit 264b1221 authored by Ralf Engels's avatar Ralf Engels
Browse files

Fix crash in collection on startup

BUG:277277
parent cca9bc33
......@@ -57,9 +57,9 @@ CollectionSortFilterProxyModel::lessThan( const QModelIndex &left, const QModelI
CollectionTreeItem *rightItem = treeItem( right );
// various artists and no label items are always at the top
if( leftItem->isVariousArtistItem() || leftItem->isNoLabelItem() )
if( !leftItem || leftItem->isVariousArtistItem() || leftItem->isNoLabelItem() )
return true;
if( rightItem->isVariousArtistItem() || rightItem->isNoLabelItem() )
if( !rightItem || rightItem->isVariousArtistItem() || rightItem->isNoLabelItem() )
return false;
if( leftItem->isTrackItem() && rightItem->isTrackItem() )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment