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:
parent
e88b475b3a
commit
a90c35223d
|
@ -343,7 +343,9 @@ void LocationBar::showUrl(const QUrl &url)
|
||||||
|
|
||||||
void LocationBar::updateSiteIcon()
|
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)));
|
m_siteIcon->setIcon(QIcon(icon.pixmap(16)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user