mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 09:04:33 +02:00
Try harder to find an account
This commit is contained in:
@@ -729,6 +729,12 @@ AccountModel::indexForAtticaId( const QString& resolverId ) const
|
|||||||
{
|
{
|
||||||
return index( i, 0, QModelIndex() );
|
return index( i, 0, QModelIndex() );
|
||||||
}
|
}
|
||||||
|
else if ( m_accounts[ i ]->type == AccountModelNode::CustomAccountType && qobject_cast< CustomAtticaAccount* >( m_accounts[ i ]->customAccount ) )
|
||||||
|
{
|
||||||
|
const CustomAtticaAccount* atticaAcct = qobject_cast< CustomAtticaAccount* >( m_accounts[ i ]->customAccount );
|
||||||
|
if ( atticaAcct->atticaContent().id() == resolverId )
|
||||||
|
return index( i, 0, QModelIndex() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return QModelIndex();
|
return QModelIndex();
|
||||||
|
Reference in New Issue
Block a user