diff --git a/src/libtomahawk/accounts/AccountManager.cpp b/src/libtomahawk/accounts/AccountManager.cpp index bef708937..ae0b96f99 100644 --- a/src/libtomahawk/accounts/AccountManager.cpp +++ b/src/libtomahawk/accounts/AccountManager.cpp @@ -182,7 +182,7 @@ AccountManager::loadPluginFactory( const QString& path ) void AccountManager::enableAccount( Account* account ) { - if ( account->isAuthenticated() ) + if ( account->enabled() ) return; account->authenticate(); @@ -197,7 +197,7 @@ AccountManager::enableAccount( Account* account ) void AccountManager::disableAccount( Account* account ) { - if ( !account->isAuthenticated() ) + if ( !account->enabled() ) return; account->deauthenticate();