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:
@@ -81,8 +81,11 @@ TreeProxyModel::filterAcceptsRow( int sourceRow, const QModelIndex& sourceParent
|
|||||||
QList< Tomahawk::result_ptr > rl = m_cache.values( sourceParent );
|
QList< Tomahawk::result_ptr > rl = m_cache.values( sourceParent );
|
||||||
foreach ( const Tomahawk::result_ptr& result, rl )
|
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() );
|
return ( result.data() == pi->result().data() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( int i = 0; i < sourceModel()->rowCount( sourceParent ); i++ )
|
for ( int i = 0; i < sourceModel()->rowCount( sourceParent ); i++ )
|
||||||
|
Reference in New Issue
Block a user