From 1bc3bf3b0556b610358fbe8e491b9bef6751db65 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Sun, 16 Jun 2013 14:17:05 +0200 Subject: [PATCH] Don't carry Telepathy objectPaths around more than necessary. --- .../configstorage/telepathy/TelepathyConfigStorage.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/libtomahawk/accounts/configstorage/telepathy/TelepathyConfigStorage.cpp b/src/libtomahawk/accounts/configstorage/telepathy/TelepathyConfigStorage.cpp index 2e1e7b9c8..b738639f6 100644 --- a/src/libtomahawk/accounts/configstorage/telepathy/TelepathyConfigStorage.cpp +++ b/src/libtomahawk/accounts/configstorage/telepathy/TelepathyConfigStorage.cpp @@ -69,7 +69,7 @@ Tomahawk::Accounts::TelepathyConfigStorage::onTpAccountManagerReady( Tp::Pending { if ( acc->protocolName() == "jabber" ) { - m_accountIds << acc->objectPath(); + m_accountIds << telepathyPathToAccountId( acc->objectPath() ); keychainIds << acc->uniqueIdentifier(); } } @@ -94,11 +94,6 @@ Tomahawk::Accounts::TelepathyConfigStorage::onCredentialsManagerReady( const QSt //no need to listen for it any more disconnect( this, SLOT( onCredentialsManagerReady( QString ) ) ); - for ( int i = 0; i < m_accountIds.length(); ++i ) - { - m_accountIds[ i ] = telepathyPathToAccountId( m_accountIds[ i ] ); - } - emit ready(); }