1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-25 02:09:48 +01: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
QList< AccountFactory* > factories = AccountManager::instance()->factories();
QList< Account* > allAccounts = AccountManager::instance()->accounts();
qDebug() << "All accounts:";
foreach ( Account* acct, allAccounts )
qDebug() << acct->accountFriendlyName() << "\t" << acct->accountId();
foreach ( AccountFactory* fac, factories )
{
if ( !fac->allowUserCreation() )
@ -84,6 +88,9 @@ AccountModel::loadData()
const int removed = allAccounts.removeAll( acct );
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
{
@ -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 )
{
qDebug() << "Resolver is left over:" << acct->accountFriendlyName();