From 613d007b66f74683cc86e3ce8bda42992ae840f1 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 19 Apr 2010 09:51:04 +0200 Subject: the "real" fix for 234579 CCBUG:234579 --- src/webtab.cpp | 11 ++++++----- 1 file 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; } } -- cgit v1.2.1