1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

* Don't filter out some wanted tracks, e.g. when multiple tracks of an album have the same name, but different tracks numbers.

This commit is contained in:
Christian Muehlhaeuser
2011-08-21 02:56:29 +02:00
parent 43bf42df6f
commit 71f6a3e81a

View File

@@ -81,9 +81,12 @@ TreeProxyModel::filterAcceptsRow( int sourceRow, const QModelIndex& sourceParent
QList< Tomahawk::result_ptr > rl = m_cache.values( sourceParent );
foreach ( const Tomahawk::result_ptr& result, rl )
{
if ( result->track() == pi->result()->track() )
if ( result->track() == pi->result()->track() &&
( result->albumpos() == pi->result()->albumpos() || result->albumpos() == 0 ) )
{
return ( result.data() == pi->result().data() );
}
}
for ( int i = 0; i < sourceModel()->rowCount( sourceParent ); i++ )
{