mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
add some debug to account adding
This commit is contained in:
@@ -421,13 +421,16 @@ void
|
|||||||
AccountModel::accountAdded( Account* account )
|
AccountModel::accountAdded( Account* account )
|
||||||
{
|
{
|
||||||
// Find the factory this belongs up, and update
|
// 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 );
|
AccountFactory* factory = AccountManager::instance()->factoryForAccount( account );
|
||||||
AtticaResolverAccount* attica = qobject_cast< AtticaResolverAccount* >( account );
|
AtticaResolverAccount* attica = qobject_cast< AtticaResolverAccount* >( account );
|
||||||
for ( int i = 0; i < m_accounts.size(); i++ )
|
for ( int i = 0; i < m_accounts.size(); i++ )
|
||||||
{
|
{
|
||||||
AccountModelNode* n = m_accounts.at( i );
|
AccountModelNode* n = m_accounts.at( i );
|
||||||
bool thisIsTheOne = false;
|
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 )
|
if ( n->factory == factory )
|
||||||
{
|
{
|
||||||
n->accounts << account;
|
n->accounts << account;
|
||||||
|
Reference in New Issue
Block a user