[SiteIcon] Correctly show first site icon

remotes/origin/falkon
nowrep 12 years ago
parent 5b6b6c6eaf
commit b3c40e6281
  1. 4
      src/lib/navigation/siteicon.cpp

@ -54,9 +54,11 @@ void SiteIcon::setWebView(WebView* view)
void SiteIcon::setIcon(const QIcon &icon) void SiteIcon::setIcon(const QIcon &icon)
{ {
bool wasNull = m_icon.isNull();
m_icon = icon; m_icon = icon;
if (m_icon.isNull()) { if (wasNull) {
updateIcon(); updateIcon();
} }
else { else {

Loading…
Cancel
Save