Skip to content

Commit

Permalink
Fix error in logic.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <blackslayer4@gmail.com>
  • Loading branch information
allexzander committed Oct 11, 2022
1 parent 4930531 commit 564a3ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cmd/simplesslerrorhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 564a3ad

Please sign in to comment.