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