mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
Fix c&p mistake
This commit is contained in:
parent
575411008f
commit
decd00318f
@ -276,7 +276,7 @@ PlayableProxyModel::nameFilterAcceptsRow( int sourceRow, PlayableItem* pi, const
|
||||
return found;
|
||||
}
|
||||
|
||||
const Tomahawk::album_ptr& ar = pi->album();
|
||||
const Tomahawk::artist_ptr& ar = pi->artist();
|
||||
if ( ar )
|
||||
{
|
||||
QStringList sl = filterRegExp().pattern().split( " ", QString::SkipEmptyParts );
|
||||
@ -284,8 +284,7 @@ PlayableProxyModel::nameFilterAcceptsRow( int sourceRow, PlayableItem* pi, const
|
||||
bool found = true;
|
||||
foreach( const QString& s, sl )
|
||||
{
|
||||
if ( !ar->name().contains( s, Qt::CaseInsensitive ) &&
|
||||
!ar->artist()->name().contains( s, Qt::CaseInsensitive ) )
|
||||
if ( !ar->name().contains( s, Qt::CaseInsensitive ) )
|
||||
{
|
||||
found = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user