summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}