summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/webtab.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/webtab.cpp b/src/webtab.cpp
index fd44cc10..8af1055c 100644
--- a/src/webtab.cpp
+++ b/src/webtab.cpp
@@ -184,7 +184,20 @@ bool WebTab::hasRSSInfo()
foreach(QWebElement el, col)
{
if( el.attribute("type") == QL1S("application/rss+xml") || el.attribute("type") == QL1S("application/rss+xml") )
- _rssList << KUrl( el.attribute("href") );
+ {
+ KUrl u = KUrl( el.attribute("href") );
+ if(u.isRelative())
+ {
+ u = url();
+ // NOTE
+ // cd() is probably better than setPath() here,
+ // for all those url sites just having a path
+ if(u.cd( el.attribute("href") ))
+ _rssList << u;
+ }
+ else
+ _rssList << u;
+ }
}
return !_rssList.isEmpty();