From a90c35223d63b39560bebcd1e0b5300c37d30c81 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 24 Jan 2016 13:49:15 +0100 Subject: [PATCH] LocationBar: Show encrypted site icon on https sites --- src/lib/navigation/locationbar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/navigation/locationbar.cpp b/src/lib/navigation/locationbar.cpp index 9035ab9bc..ad57dcf0e 100644 --- a/src/lib/navigation/locationbar.cpp +++ b/src/lib/navigation/locationbar.cpp @@ -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))); }