mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
First do visibilty check to reduce branching
This commit is contained in:
parent
44ae9f7608
commit
b970cf1433
@ -156,10 +156,10 @@ PlayableProxyModel::filterAcceptsRow( int sourceRow, const QModelIndex& sourcePa
|
||||
bool
|
||||
PlayableProxyModel::filterAcceptsRowInternal( int sourceRow, PlayableItem* pi, const QModelIndex& sourceParent ) const
|
||||
{
|
||||
if ( m_hideDupeItems && !dupeFilterAcceptsRow( sourceRow, pi, sourceParent ) )
|
||||
return false;
|
||||
if ( m_maxVisibleItems > 0 && !visibilityFilterAcceptsRow( sourceRow, sourceParent ) )
|
||||
return false;
|
||||
if ( m_hideDupeItems && !dupeFilterAcceptsRow( sourceRow, pi, sourceParent ) )
|
||||
return false;
|
||||
|
||||
return nameFilterAcceptsRow( sourceRow, pi, sourceParent );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user