1
0
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:
Leo Franchi
2012-05-22 10:34:08 -04:00
parent e91d9e55f6
commit bb62fd6047

View File

@@ -729,6 +729,12 @@ AccountModel::indexForAtticaId( const QString& resolverId ) const
{
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();