summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-06-20 19:21:01 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-06-24 11:18:50 +0200
commit1304a1a979873a716ad58f7050fe5e927cd9ed5a (patch)
treeb417ebf8b9cd1685503165378213fd13fbf08d2a /src
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-1304a1a979873a716ad58f7050fe5e927cd9ed5a.tar.xz
Just check first certificate dates and errors to state IT is valid
BUG: 299453
Diffstat (limited to 'src')
-rw-r--r--src/webpage.cpp12
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;
}