1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02: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 ); m_accounts << new AccountModelNode( content );
qDebug() << "No custom attica account, looking for normal resolver account";
foreach ( Account* acct, AccountManager::instance()->accounts( Accounts::ResolverType ) ) foreach ( Account* acct, AccountManager::instance()->accounts( Accounts::ResolverType ) )
{ {
qDebug() << "Found ResolverAccount" << acct->accountFriendlyName();
if ( AtticaResolverAccount* resolver = qobject_cast< AtticaResolverAccount* >( acct ) ) if ( AtticaResolverAccount* resolver = qobject_cast< AtticaResolverAccount* >( acct ) )
{ {
qDebug() << "Which is an attica resolver with id:" << resolver->atticaId();
if ( resolver->atticaId() == content.id() ) if ( resolver->atticaId() == content.id() )
{ {
allAccounts.removeAll( acct ); allAccounts.removeAll( acct );
@@ -102,6 +105,7 @@ AccountModel::loadData()
// All other accounts we haven't dealt with yet // All other accounts we haven't dealt with yet
foreach ( Account* acct, allAccounts ) 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 Q_ASSERT( !qobject_cast< AtticaResolverAccount* >( acct ) ); // This should be caught above in the attica list
if ( qobject_cast< ResolverAccount* >( acct ) && !qobject_cast< AtticaResolverAccount* >( acct ) ) if ( qobject_cast< ResolverAccount* >( acct ) && !qobject_cast< AtticaResolverAccount* >( acct ) )

View File

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