Wizard: Reset the QSslConfiguration before checking the server

Because a previous call with another demain might have set some
config for another server.

Issue #6832
This commit is contained in:
Olivier Goffart 2018-10-24 11:57:08 +02:00 committed by Kevin Ottens
parent b820e46805
commit dcfbde2a67
No known key found for this signature in database
GPG Key ID: 074BBBCB8DECC9E2

View File

@ -153,6 +153,8 @@ void OwncloudSetupWizard::slotCheckServer(const QString &urlString)
// Reset the proxy which might had been determined previously in ConnectionValidator::checkServerAndAuth()
// when there was a previous account.
account->networkAccessManager()->setProxy(QNetworkProxy(QNetworkProxy::NoProxy));
// And also reset the QSslConfiguration, for the same reason (#6832)
account->setSslConfiguration({});
// Lookup system proxy in a thread https://github.com/owncloud/client/issues/2993
if (ClientProxy::isUsingSystemDefault()) {