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

LocationBar: Show encrypted site icon on https sites

This commit is contained in:
David Rosca 2016-01-24 13:49:15 +01:00
parent e88b475b3a
commit a90c35223d

View File

@ -343,7 +343,9 @@ void LocationBar::showUrl(const QUrl &url)
void LocationBar::updateSiteIcon()
{
const QIcon icon = m_webView ? m_webView->icon() : IconProvider::emptyWebIcon();
QIcon icon = m_webView ? m_webView->icon() : IconProvider::emptyWebIcon();
if (m_webView && m_webView->url().scheme() == QL1S("https"))
icon = QIcon::fromTheme(QSL("document-encrypted"), icon);
m_siteIcon->setIcon(QIcon(icon.pixmap(16)));
}