mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 13:17:34 +02:00
We no longer remove accounts when uninstalling from attica
This commit is contained in:
@@ -703,19 +703,6 @@ AtticaManager::uninstallResolver( const Content& resolver )
|
|||||||
|
|
||||||
m_resolverStates[ resolver.id() ].state = Uninstalled;
|
m_resolverStates[ resolver.id() ].state = Uninstalled;
|
||||||
TomahawkSettingsGui::instanceGui()->setAtticaResolverState( resolver.id(), 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() );
|
doResolverRemove( resolver.id() );
|
||||||
|
Reference in New Issue
Block a user