From 923ebe05071c78889b647ca2eb24fd17c8ddae4f Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sun, 9 Apr 2017 18:56:20 +0100 Subject: [PATCH] OAuthDialog - Clear Cookies .. since login screens often examine cookies to 'auto' login which is unhelpful when setting up accounts. --- src/Cloud/OAuthDialog.cpp | 1 + src/Cloud/OAuthDialog.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Cloud/OAuthDialog.cpp b/src/Cloud/OAuthDialog.cpp index 9741164c0..6fcb8ccb1 100644 --- a/src/Cloud/OAuthDialog.cpp +++ b/src/Cloud/OAuthDialog.cpp @@ -79,6 +79,7 @@ OAuthDialog::OAuthDialog(Context *context, OAuthSite site, CloudService *service #if defined(NOWEBKIT) || (QT_VERSION > 0x050000 && defined(Q_OS_MAC)) view = new QWebEngineView(); view->setZoomFactor(dpiXFactor); + view->page()->profile()->cookieStore()->deleteAllCookies(); #else view = new QWebView(); #endif diff --git a/src/Cloud/OAuthDialog.h b/src/Cloud/OAuthDialog.h index 426f8b8cc..d94756286 100644 --- a/src/Cloud/OAuthDialog.h +++ b/src/Cloud/OAuthDialog.h @@ -46,6 +46,8 @@ #include #include #include +#include +#include #endif