1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

add some debug for domme

This commit is contained in:
Leo Franchi 2012-03-08 12:01:44 -05:00
parent 6b6d5f270f
commit 0c7780e5e3
2 changed files with 5 additions and 0 deletions

View File

@ -86,10 +86,13 @@ AccountModel::loadData()
{
m_accounts << new AccountModelNode( content );
qDebug() << "No custom attica account, looking for normal resolver account";
foreach ( Account* acct, AccountManager::instance()->accounts( Accounts::ResolverType ) )
{
qDebug() << "Found ResolverAccount" << acct->accountFriendlyName();
if ( AtticaResolverAccount* resolver = qobject_cast< AtticaResolverAccount* >( acct ) )
{
qDebug() << "Which is an attica resolver with id:" << resolver->atticaId();
if ( resolver->atticaId() == content.id() )
{
allAccounts.removeAll( acct );
@ -102,6 +105,7 @@ AccountModel::loadData()
// All other accounts we haven't dealt with yet
foreach ( Account* acct, allAccounts )
{
qDebug() << "Resolver is left over:" << acct->accountFriendlyName();
Q_ASSERT( !qobject_cast< AtticaResolverAccount* >( acct ) ); // This should be caught above in the attica list
if ( qobject_cast< ResolverAccount* >( acct ) && !qobject_cast< AtticaResolverAccount* >( acct ) )

View File

@ -48,6 +48,7 @@ ResolverAccountFactory::createAccount( const QString& accountId )
Account*
ResolverAccountFactory::createFromPath( const QString& path, bool isAttica )
{
qDebug() << "Creating ResolverAccount from path:" << path << "is attica" << isAttica;
if ( isAttica )
{
QFileInfo info( path );