From 38bca2f01a9bf8663f56b45b2cec2e9cf00ffa85 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 18 Jul 2011 11:44:02 +0200 Subject: style cleanup --- src/webpage.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/webpage.cpp') diff --git a/src/webpage.cpp b/src/webpage.cpp index 95d7b6ae..35c1eb54 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -557,8 +557,8 @@ void WebPage::manageNetworkErrors(QNetworkReply *reply) kDebug() << "IS MAIN FRAME? " << isMainFrameRequest; kDebug() << "LOADING URL: " << _loadingUrl; kDebug() << "IS URL FRAME LOADING " << isUrlFrameLoading; - - if (isMainFrameRequest + + if(isMainFrameRequest && _sslInfo.isValid() && !domainSchemeMatch(reply->url(), _sslInfo.url()) ) @@ -731,10 +731,10 @@ void WebPage::downloadAllContentsWithKGet(QPoint) void WebPage::showSSLInfo(QPoint pos) { - if (mainFrame()->url().scheme() == QL1S("https")) + if(mainFrame()->url().scheme() == QL1S("https")) { SSLWidget *widget = new SSLWidget(mainFrame()->url(), _sslInfo, view()); - widget->showAt(pos); + widget->showAt(pos); } else { @@ -769,7 +769,7 @@ bool WebPage::hasSslValid() { bool v = true; QList certList = _sslInfo.certificateChain(); - Q_FOREACH(const QSslCertificate &cert, certList) + Q_FOREACH(const QSslCertificate & cert, certList) { v &= cert.isValid(); } -- cgit v1.2.1