diff options
Diffstat (limited to 'src/webtab.cpp')
-rw-r--r-- | src/webtab.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/webtab.cpp b/src/webtab.cpp index fd44cc10..6bafd04a 100644 --- a/src/webtab.cpp +++ b/src/webtab.cpp @@ -184,7 +184,21 @@ 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") ); + { + if( el.attribute("href").startsWith( QL1S("http") ) ) + { + _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; + } + } } return !_rssList.isEmpty(); |