1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

add stupid amounts of debug

This commit is contained in:
Leo Franchi
2012-03-08 12:24:30 -05:00
parent f9940ead9f
commit a602cbe005

View File

@@ -52,6 +52,10 @@ AccountModel::loadData()
// Add all factories // Add all factories
QList< AccountFactory* > factories = AccountManager::instance()->factories(); QList< AccountFactory* > factories = AccountManager::instance()->factories();
QList< Account* > allAccounts = AccountManager::instance()->accounts(); QList< Account* > allAccounts = AccountManager::instance()->accounts();
qDebug() << "All accounts:";
foreach ( Account* acct, allAccounts )
qDebug() << acct->accountFriendlyName() << "\t" << acct->accountId();
foreach ( AccountFactory* fac, factories ) foreach ( AccountFactory* fac, factories )
{ {
if ( !fac->allowUserCreation() ) if ( !fac->allowUserCreation() )
@@ -84,6 +88,9 @@ AccountModel::loadData()
const int removed = allAccounts.removeAll( acct ); const int removed = allAccounts.removeAll( acct );
qDebug() << "Removed custom account from misc accounts list, found:" << removed; qDebug() << "Removed custom account from misc accounts list, found:" << removed;
qDebug() << "All accounts after remove:";
foreach ( Account* acct, allAccounts )
qDebug() << acct->accountFriendlyName() << "\t" << acct->accountId(); // All other accounts we haven't dealt with yet
} }
} else } else
{ {
@@ -105,7 +112,10 @@ AccountModel::loadData()
} }
} }
// All other accounts we haven't dealt with yet
qDebug() << "All accounts left:";
foreach ( Account* acct, allAccounts )
qDebug() << acct->accountFriendlyName() << "\t" << acct->accountId(); // All other accounts we haven't dealt with yet
foreach ( Account* acct, allAccounts ) foreach ( Account* acct, allAccounts )
{ {
qDebug() << "Resolver is left over:" << acct->accountFriendlyName(); qDebug() << "Resolver is left over:" << acct->accountFriendlyName();