mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-18 23:09:42 +01:00
add some debug to account adding
This commit is contained in:
parent
638718a48c
commit
dc41b29ab7
@ -421,13 +421,16 @@ void
|
||||
AccountModel::accountAdded( Account* account )
|
||||
{
|
||||
// Find the factory this belongs up, and update
|
||||
qDebug() << "IN ACCOUNT ADDED!!!!";
|
||||
qDebug() << "IN ACCOUNT ADDED, new account:" << account->accountFriendlyName();
|
||||
AccountFactory* factory = AccountManager::instance()->factoryForAccount( account );
|
||||
AtticaResolverAccount* attica = qobject_cast< AtticaResolverAccount* >( account );
|
||||
for ( int i = 0; i < m_accounts.size(); i++ )
|
||||
{
|
||||
AccountModelNode* n = m_accounts.at( i );
|
||||
bool thisIsTheOne = false;
|
||||
qDebug() << "Checking for added account's related factory or attica:" << n->factory << attica;
|
||||
if ( attica )
|
||||
qDebug() << n->atticaContent.id() << attica->atticaId();
|
||||
if ( n->factory == factory )
|
||||
{
|
||||
n->accounts << account;
|
||||
|
Loading…
x
Reference in New Issue
Block a user