diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-12-27 12:27:22 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-12-27 12:27:22 +0100 |
commit | b8546e2a1e86126702f65d63a9e090d13d91f328 (patch) | |
tree | 0ad14be1280d1974d2d1f55c4a2472d171a6cbc5 /src/iconmanager.cpp | |
parent | rekonq 0.8.57 (diff) | |
download | rekonq-b8546e2a1e86126702f65d63a9e090d13d91f328.tar.xz |
IconManager, small cleanup: use (QWeb)Frames instead of pages.
Diffstat (limited to 'src/iconmanager.cpp')
-rw-r--r-- | src/iconmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/iconmanager.cpp b/src/iconmanager.cpp index 632a33af..8179ca07 100644 --- a/src/iconmanager.cpp +++ b/src/iconmanager.cpp @@ -92,7 +92,7 @@ KIcon IconManager::iconForUrl(const KUrl &url) } -void IconManager::provideIcon(QWebPage *page, const KUrl &url, bool notify) +void IconManager::provideIcon(QWebFrame *mFrame, const KUrl &url, bool notify) { // provide icons just for http/https sites if (!url.scheme().startsWith(QL1S("http"))) @@ -124,7 +124,7 @@ void IconManager::provideIcon(QWebPage *page, const KUrl &url, bool notify) // find favicon url KUrl faviconUrl; - QWebElement root = page->mainFrame()->documentElement(); + QWebElement root = mFrame->documentElement(); QWebElement e = root.findFirst(QL1S("link[rel~=\"icon\"]")); QString relUrlString = e.attribute(QL1S("href")); if (relUrlString.isEmpty()) @@ -147,7 +147,7 @@ void IconManager::provideIcon(QWebPage *page, const KUrl &url, bool notify) KUrl destUrl(_faviconsDir + url.host()); // download icon - KIO::FileCopyJob *job = KIO::file_copy(faviconUrl, destUrl, -1, KIO::HideProgressInfo); + KIO::FileCopyJob *job = KIO::file_copy(faviconUrl, destUrl, -1, KIO::HideProgressInfo | KIO::Overwrite); if (notify) connect(job, SIGNAL(result(KJob*)), this, SLOT(notifyLastStuffs(KJob *))); else |