diff --git a/src/libtomahawk/accounts/account.h b/src/libtomahawk/accounts/account.h index 8b2d680df..970b6614b 100644 --- a/src/libtomahawk/accounts/account.h +++ b/src/libtomahawk/accounts/account.h @@ -113,8 +113,10 @@ protected: { case InfoType: m_types << "InfoType"; + break; case SipType: m_types << "SipType"; + break; } } syncConfig(); diff --git a/src/libtomahawk/accounts/accountmanager.cpp b/src/libtomahawk/accounts/accountmanager.cpp index 385403908..3cca9b797 100644 --- a/src/libtomahawk/accounts/accountmanager.cpp +++ b/src/libtomahawk/accounts/accountmanager.cpp @@ -144,13 +144,21 @@ void AccountManager::loadFromConfig() { QStringList pluginIds = TomahawkSettings::instance()->accountPlugins(); + + //FIXME: this is just for debugging + if ( pluginIds.isEmpty() ) + { + Account* account = m_accountFactories[ "twitteraccount" ]->createAccount(); + addAccountPlugin( account ); + } + foreach( const QString& pluginId, pluginIds ) { QString pluginFactory = factoryFromId( pluginId ); if( m_accountFactories.contains( pluginFactory ) ) { - Account* a = loadPlugin( pluginId ); - addAccountPlugin( a ); + Account* account = loadPlugin( pluginId ); + addAccountPlugin( account ); } } } @@ -173,6 +181,7 @@ AccountManager::loadPlugin( const QString& pluginId ) void AccountManager::addAccountPlugin( Account* account ) { + tDebug() << Q_FUNC_INFO << "adding account plugin"; m_accounts.append( account ); foreach( AccountType type, account->types() ) diff --git a/src/tomahawkapp.cpp b/src/tomahawkapp.cpp index 60f535ad4..1d002f435 100644 --- a/src/tomahawkapp.cpp +++ b/src/tomahawkapp.cpp @@ -506,6 +506,7 @@ TomahawkApp::initSIP() { foreach ( Tomahawk::Accounts::Account* account, Tomahawk::Accounts::AccountManager::instance()->getAccounts() ) { + tDebug() << Q_FUNC_INFO << "testing account with name " << account->accountServiceName(); if ( account->configurationWidget() ) account->configurationWidget()->show(); }