diff --git a/src/rss/rss_imp.cpp b/src/rss/rss_imp.cpp index 8c1907895..5251c4712 100644 --- a/src/rss/rss_imp.cpp +++ b/src/rss/rss_imp.cpp @@ -184,7 +184,7 @@ void RSSImp::on_newFeedButton_clicked() { if (parent_item == m_feedList->stickyUnreadItem()) { parent_item = 0; } else { - if (m_feedList->isFolder(parent_item)) + if (!m_feedList->isFolder(parent_item)) parent_item = parent_item->parent(); } } diff --git a/src/rss/rssfeed.cpp b/src/rss/rssfeed.cpp index df83cb716..d0aac714c 100644 --- a/src/rss/rssfeed.cpp +++ b/src/rss/rssfeed.cpp @@ -258,15 +258,19 @@ bool RssFeed::parseRSS(QIODevice* device) parseRSSChannel(xml); found_channel = true; break; - } else + } else { + qDebug() << "Skip rss item: " << xml.name(); xml.skipCurrentElement(); + } } break; - } else + } else { + qDebug() << "Skip root item: " << xml.name(); xml.skipCurrentElement(); + } } - if (xml.error()) { + if (xml.hasError()) { qWarning() << "Error parsing RSS document: " << xml.errorString(); } diff --git a/src/rss/rssfolder.cpp b/src/rss/rssfolder.cpp index 2d7bddf5e..6f094ff0a 100644 --- a/src/rss/rssfolder.cpp +++ b/src/rss/rssfolder.cpp @@ -69,7 +69,10 @@ RssFolderPtr RssFolder::addFolder(const QString &name) { } RssFeedPtr RssFolder::addStream(RssManager* manager, const QString &url) { + qDebug() << Q_FUNC_INFO << manager << url; RssFeedPtr stream(new RssFeed(manager, this, url)); + Q_ASSERT(stream); + qDebug() << "Stream URL is " << stream->url(); Q_ASSERT(!m_children.contains(stream->url())); m_children[stream->url()] = stream; stream->refresh();