1
0
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:
Uwe L. Korn 2014-10-12 15:36:01 +01:00
parent 575411008f
commit decd00318f

View File

@ -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;
}