1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-02 12:20:45 +02: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; return found;
} }
const Tomahawk::album_ptr& ar = pi->album(); const Tomahawk::artist_ptr& ar = pi->artist();
if ( ar ) if ( ar )
{ {
QStringList sl = filterRegExp().pattern().split( " ", QString::SkipEmptyParts ); QStringList sl = filterRegExp().pattern().split( " ", QString::SkipEmptyParts );
@@ -284,8 +284,7 @@ PlayableProxyModel::nameFilterAcceptsRow( int sourceRow, PlayableItem* pi, const
bool found = true; bool found = true;
foreach( const QString& s, sl ) foreach( const QString& s, sl )
{ {
if ( !ar->name().contains( s, Qt::CaseInsensitive ) && if ( !ar->name().contains( s, Qt::CaseInsensitive ) )
!ar->artist()->name().contains( s, Qt::CaseInsensitive ) )
{ {
found = false; found = false;
} }