1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02: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") ); m_ui->loginButton->setText( tr("Continue") );
return; return;
} }
m_account->deauthenticate(); if ( statusCode == 401 )
QMessageBox::critical( this, "An error was encountered logging in:", error ); m_account->deauthenticate();
QMessageBox::critical( this, "An error was encountered:", error );
} }