diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-03-15 14:12:03 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-03-15 14:12:03 +0300 |
commit | fd95b7a4de7fd3e0d091d1a72bbfe1eee255205a (patch) | |
tree | f47d3616cfec439db5ee19d7ad8336a24c19f713 /src/gui/accountstate.cpp | |
parent | 0dd2065bd8fff67f30521f67c37af1fc2f1fb861 (diff) | |
parent | b35eec30325eb9933339e02e66640ca2082ade35 (diff) |
Merge remote-tracking branch 'origin/2.10'
Diffstat (limited to 'src/gui/accountstate.cpp')
-rw-r--r-- | src/gui/accountstate.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp index 26a5f703b..d1e30c876 100644 --- a/src/gui/accountstate.cpp +++ b/src/gui/accountstate.cpp @@ -298,10 +298,7 @@ void AccountState::checkConnectivity(bool blockJobs) // Use a small authed propfind as a minimal ping when we're // already connected. if (blockJobs) { - if (Theme::instance()->connectionValidatorClearCookies()) { - // clear the cookies directly before we try to validate - connect(_connectionValidator, &ConnectionValidator::aboutToStart, _account.get(), &Account::clearCookieJar, Qt::DirectConnection); - } + _connectionValidator->setClearCookies(true); _connectionValidator->checkServer(); } else { _connectionValidator->checkServerAndUpdate(); @@ -322,6 +319,7 @@ void AccountState::checkConnectivity(bool blockJobs) // ssl config that does not have a sensible certificate chain. account()->setSslConfiguration(QSslConfiguration()); //#endif + account()->clearCookieJar(); _connectionValidator->checkServerAndUpdate(); } } |