From a7d90b16e7550c1dad0e49e98e095ee628effd75 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Tue, 26 Jun 2012 17:52:33 -0400 Subject: [PATCH] We no longer remove accounts when uninstalling from attica --- src/libtomahawk/AtticaManager.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/libtomahawk/AtticaManager.cpp b/src/libtomahawk/AtticaManager.cpp index 9b86be130..f14d370fa 100644 --- a/src/libtomahawk/AtticaManager.cpp +++ b/src/libtomahawk/AtticaManager.cpp @@ -703,19 +703,6 @@ AtticaManager::uninstallResolver( const Content& resolver ) m_resolverStates[ resolver.id() ].state = Uninstalled; TomahawkSettingsGui::instanceGui()->setAtticaResolverState( resolver.id(), Uninstalled ); - - // remove account as well - QList< Tomahawk::Accounts::Account* > accounts = Tomahawk::Accounts::AccountManager::instance()->accounts( Tomahawk::Accounts::ResolverType ); - foreach ( Tomahawk::Accounts::Account* account, accounts ) - { - if ( Tomahawk::Accounts::AtticaResolverAccount* atticaAccount = qobject_cast< Tomahawk::Accounts::AtticaResolverAccount* >( account ) ) - { - if ( atticaAccount->atticaId() == resolver.id() ) // this is the account we want to remove - { - Tomahawk::Accounts::AccountManager::instance()->removeAccount( atticaAccount ); - } - } - } } doResolverRemove( resolver.id() );