1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 19:37:09 +02:00

* Fixed filtering out unwanted dupes when viewing a local collection.

This commit is contained in:
Christian Muehlhaeuser
2011-08-21 22:50:41 +02:00
parent 13a93cfa45
commit 48aeddc0a9

View File

@@ -94,7 +94,9 @@ TreeProxyModel::filterAcceptsRow( int sourceRow, const QModelIndex& sourceParent
continue;
TreeModelItem* ti = sourceModel()->itemFromIndex( sourceModel()->index( i, 0, sourceParent ) );
if ( ti->result()->track() == pi->result()->track() )
if ( ti->result()->track() == pi->result()->track() &&
( ti->result()->albumpos() == pi->result()->albumpos() || ti->result()->albumpos() == 0 ) )
{
if ( !pi->result()->isOnline() && ti->result()->isOnline() )
return false;