mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-22 13:43:11 +02:00
Don't carry Telepathy objectPaths around more than necessary.
This commit is contained in:
@@ -69,7 +69,7 @@ Tomahawk::Accounts::TelepathyConfigStorage::onTpAccountManagerReady( Tp::Pending
|
|||||||
{
|
{
|
||||||
if ( acc->protocolName() == "jabber" )
|
if ( acc->protocolName() == "jabber" )
|
||||||
{
|
{
|
||||||
m_accountIds << acc->objectPath();
|
m_accountIds << telepathyPathToAccountId( acc->objectPath() );
|
||||||
keychainIds << acc->uniqueIdentifier();
|
keychainIds << acc->uniqueIdentifier();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -94,11 +94,6 @@ Tomahawk::Accounts::TelepathyConfigStorage::onCredentialsManagerReady( const QSt
|
|||||||
//no need to listen for it any more
|
//no need to listen for it any more
|
||||||
disconnect( this, SLOT( onCredentialsManagerReady( QString ) ) );
|
disconnect( this, SLOT( onCredentialsManagerReady( QString ) ) );
|
||||||
|
|
||||||
for ( int i = 0; i < m_accountIds.length(); ++i )
|
|
||||||
{
|
|
||||||
m_accountIds[ i ] = telepathyPathToAccountId( m_accountIds[ i ] );
|
|
||||||
}
|
|
||||||
|
|
||||||
emit ready();
|
emit ready();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user