mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Fix c&p mistake
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user