1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Edited showing SSL status on ajax pages

This commit is contained in:
nowrep 2011-04-04 16:29:25 +02:00
parent fe1e3806e9
commit 280d421938
2 changed files with 5 additions and 2 deletions

View File

@ -257,7 +257,7 @@ void LocationBar::siteIconChanged()
m_siteIcon->setIcon(QIcon(":icons/locationbar/unknownpage.png")); m_siteIcon->setIcon(QIcon(":icons/locationbar/unknownpage.png"));
} else { } else {
// QIcon icon(*icon_); // QIcon icon(*icon_);
m_siteIcon->setIcon(icon_); m_siteIcon->setIcon(QIcon(icon_.pixmap(16,16)));
} }
} }

View File

@ -75,7 +75,10 @@ QSslCertificate WebPage::sslCertificate()
// return c; // return c;
// } // }
// return cert; // return cert;
if (mainFrame()->url().scheme() == "https")
return m_SslCert; return m_SslCert;
else
return QSslCertificate();
} }
bool WebPage::acceptNavigationRequest(QWebFrame* frame, const QNetworkRequest &request, NavigationType type) bool WebPage::acceptNavigationRequest(QWebFrame* frame, const QNetworkRequest &request, NavigationType type)