summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-19 09:51:04 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-19 09:51:04 +0200
commit613d007b66f74683cc86e3ce8bda42992ae840f1 (patch)
tree5cf0428f5ee4e139eb5af81fe3c2718dac6e7e17 /src
parentMerge branch 'master' of gitorious.org:rekonq/mainline (diff)
downloadrekonq-613d007b66f74683cc86e3ce8bda42992ae840f1.tar.xz
the "real" fix for 234579
CCBUG:234579
Diffstat (limited to 'src')
-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;
}
}