From 8509cb47438fcf8c2e25dd1dc82245c25a1e37af Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 15 May 2020 23:36:01 +0200 Subject: [PATCH] Spotify: Fix clearing access token --- src/covermanager/spotifycoverprovider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/covermanager/spotifycoverprovider.cpp b/src/covermanager/spotifycoverprovider.cpp index cc01479c0..26d82035f 100644 --- a/src/covermanager/spotifycoverprovider.cpp +++ b/src/covermanager/spotifycoverprovider.cpp @@ -421,7 +421,7 @@ QByteArray SpotifyCoverProvider::GetReplyData(QNetworkReply *reply) { int status = obj_error["status"].toInt(); QString message = obj_error["message"].toString(); error = QString("%1 (%2)").arg(message).arg(status); - if (reply->error() == 401) access_token_.clear(); + if (status == 401) access_token_.clear(); } } }