diff options
Diffstat (limited to 'src/icons/iconmanager.cpp')
-rw-r--r-- | src/icons/iconmanager.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/icons/iconmanager.cpp b/src/icons/iconmanager.cpp index 49d637ad..e0408577 100644 --- a/src/icons/iconmanager.cpp +++ b/src/icons/iconmanager.cpp @@ -115,27 +115,15 @@ void IconManager::provideIcon(QWebFrame *mFrame, const KUrl &url, bool notify) { // provide icons just for http/https sites if (!url.scheme().startsWith(QL1S("http"))) - { - if (notify) - emit iconChanged(); return; - } // do not load new icons in private browsing.. if (mFrame->page()->settings()->testAttribute(QWebSettings::PrivateBrowsingEnabled)) - { - if (notify) - emit iconChanged(); return; - } // check if icon exists if (!favIconForUrl(url).isEmpty()) - { - if (notify) - emit iconChanged(); return; - } // the simplest way.. const QString rootUrlString = url.scheme() + QL1S("://") + url.host(); @@ -165,7 +153,7 @@ void IconManager::provideIcon(QWebFrame *mFrame, const KUrl &url, bool notify) IconDownloader *id = new IconDownloader(faviconUrl, destUrl, this); if (notify) - connect(id, SIGNAL(iconReady()), this, SIGNAL(iconChanged())); + connect(id, SIGNAL(iconReady()), mFrame, SIGNAL(iconChanged())); } |