summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/webtab.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/webtab.cpp b/src/webtab.cpp
index 8af1055c..6bafd04a 100644
--- a/src/webtab.cpp
+++ b/src/webtab.cpp
@@ -185,18 +185,19 @@ bool WebTab::hasRSSInfo()
{
if( el.attribute("type") == QL1S("application/rss+xml") || el.attribute("type") == QL1S("application/rss+xml") )
{
- KUrl u = KUrl( el.attribute("href") );
- if(u.isRelative())
+ if( el.attribute("href").startsWith( QL1S("http") ) )
{
- u = url();
+ _rssList << KUrl( el.attribute("href") );
+ }
+ else
+ {
+ KUrl 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;
}
}