diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-06-20 19:21:01 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-06-24 11:18:50 +0200 |
commit | 1304a1a979873a716ad58f7050fe5e927cd9ed5a (patch) | |
tree | b417ebf8b9cd1685503165378213fd13fbf08d2a | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-1304a1a979873a716ad58f7050fe5e927cd9ed5a.tar.xz |
Just check first certificate dates and errors to state IT is valid
BUG: 299453
-rw-r--r-- | src/webpage.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index 559d3eae..9278a897 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -744,17 +744,17 @@ bool WebPage::hasSslValid() const if (certList.isEmpty()) return false; - Q_FOREACH(const QSslCertificate & cert, certList) - { - if (!cert.isValid()) - return false; - } + const QSslCertificate cert = certList.at(0); + if (!cert.isValid()) + return false; QList<QStringList> errorList = SslInfoDialog::errorsFromString(_sslInfo.certificateErrors()); - Q_FOREACH(const QStringList & list, errorList) + if (!errorList.isEmpty()) { + QStringList list = errorList.at(0); if (!list.isEmpty()) return false; } + return true; } |