mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 05:25:50 +03:00
Fix error in logic.
Signed-off-by: alex-z <blackslayer4@gmail.com>
This commit is contained in:
parent
4930531949
commit
564a3ad987
1 changed files with 5 additions and 3 deletions
|
@ -33,13 +33,15 @@ bool SimpleSslErrorHandler::handleErrors(QList<QSslError> errors, const QSslConf
|
|||
return true;
|
||||
}
|
||||
|
||||
bool allTrusted = true;
|
||||
|
||||
for (const auto &error : qAsConst(errors)) {
|
||||
if (!account->approvedCerts().contains(error.certificate())) {
|
||||
certs->append(error.certificate());
|
||||
return false;
|
||||
allTrusted = false;
|
||||
}
|
||||
certs->append(error.certificate());
|
||||
}
|
||||
|
||||
return true;
|
||||
return allTrusted;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue