From 3365560d535f837aaab328d8096e6af5bdfaaf50 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 16 Jun 2013 16:31:58 +0200 Subject: Fix rekonq pages icons according to last changes in IconManager --- src/icons/webicon.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/icons/webicon.cpp') diff --git a/src/icons/webicon.cpp b/src/icons/webicon.cpp index 6e9ec0d5..3bcf18f3 100644 --- a/src/icons/webicon.cpp +++ b/src/icons/webicon.cpp @@ -100,11 +100,18 @@ void WebIcon::saveIcon(bool b) faviconUrl = KUrl(relUrlString); if (!faviconUrl.isValid()) - { - + { faviconUrl = KUrl(rootUrlString + QL1C('/') + relUrlString); } + + if (faviconUrl.host().isEmpty()) + { + faviconUrl = KUrl(rootUrlString + relUrlString); + } } + + kDebug() << "FAVICON RETRIEVING URL: " << faviconUrl; + QString faviconsDir = KStandardDirs::locateLocal("cache" , "favicons/" , true); // dest url -- cgit v1.2.1