diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-11-22 18:07:45 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-11-22 18:07:45 +0100 |
commit | cc6fa971a01ebd2f16db11bea99d2e8d008682fc (patch) | |
tree | 768acaa5ed864eebbd27782dfac592233e27a547 /src/icons/iconmanager.cpp | |
parent | Do NOT download everytime engines favicons if present (diff) | |
download | rekonq-cc6fa971a01ebd2f16db11bea99d2e8d008682fc.tar.xz |
improvements on urlbar
STEP 2:
- work & fix on search engine favicons
- simplify code (and remove dead one)
- API clean up
- delete ASAP list items and suggestions
- let the URL in the suggestions be an hard grey
Diffstat (limited to 'src/icons/iconmanager.cpp')
-rw-r--r-- | src/icons/iconmanager.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/icons/iconmanager.cpp b/src/icons/iconmanager.cpp index cc09e252..7bc47eec 100644 --- a/src/icons/iconmanager.cpp +++ b/src/icons/iconmanager.cpp @@ -207,18 +207,15 @@ QString IconManager::iconPathForUrl(const KUrl &url) } -void IconManager::provideEngineFavicon(const KUrl &url) -{ - // will autodelete itself when done - new WebIcon(url); -} - - KIcon IconManager::engineFavicon(const KUrl &url) { if (QFile::exists(_faviconsDir + url.host() + QL1S(".png"))) return KIcon(QIcon(_faviconsDir + url.host() + QL1S(".png"))); + // if engine favicon is NOT found, download it + // will autodelete itself when done + new WebIcon(url); + kDebug() << "NO ENGINE FAVICON"; return KIcon("text-html"); } |