1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-25 20:33:20 +01:00

Only deauth on 401

This commit is contained in:
Jeff Mitchell 2013-09-06 16:22:39 -04:00
parent f3b7fc6cae
commit a2e9ecfad1

View File

@ -181,8 +181,9 @@ HatchetAccountConfig::authError( const QString &error, int statusCode, const QVa
m_ui->loginButton->setText( tr("Continue") );
return;
}
m_account->deauthenticate();
QMessageBox::critical( this, "An error was encountered logging in:", error );
if ( statusCode == 401 )
m_account->deauthenticate();
QMessageBox::critical( this, "An error was encountered:", error );
}