1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-02-03 12:47:31 +01:00

Merge pull request #6489 from jbroadus/fix-gpodder-logout

Reset gpodder session cookies on logout.
This commit is contained in:
John Maguire 2019-12-30 23:45:12 +00:00 committed by GitHub
commit 9f99cab314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@
#include <QCoreApplication>
#include <QHostInfo>
#include <QNetworkAccessManager>
#include <QNetworkCookieJar>
#include <QSettings>
#include <QTimer>
@ -143,6 +144,10 @@ void GPodderSync::Logout() {
s.remove("gpodder_last_get");
api_.reset();
// Remove session cookies. QNetworkAccessManager takes ownership of the new
// object and frees the previous.
network_->setCookieJar(new QNetworkCookieJar());
}
void GPodderSync::GetUpdatesNow() {