summaryrefslogtreecommitdiff
path: root/src/icons/webicon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/icons/webicon.cpp')
-rw-r--r--src/icons/webicon.cpp11
1 files changed, 9 insertions, 2 deletions
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