mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 17:29:42 +01: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:
parent
43bf42df6f
commit
71f6a3e81a
@ -81,8 +81,11 @@ 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++ )
|
||||
|
Loading…
x
Reference in New Issue
Block a user