Index: src/feed/feed.cpp =================================================================== --- src/feed/feed.cpp +++ src/feed/feed.cpp @@ -260,7 +260,7 @@ d->m_archive = d->m_storage->archiveFor(xmlUrl()); } - QVector list = d->m_archive->articlesForCache(); + const QVector list = d->m_archive->articlesForCache(); for (const Backend::SmallArticle &article: list) { Article mya(article, this, d->m_archive); d->articles[mya.guid()] = mya; @@ -785,8 +785,6 @@ return; } - ///loadArticles(); // TODO: make me fly: make this delayed - loadFavicon(QUrl(xmlUrl())); d->m_fetchErrorCode = Syndication::Success; @@ -920,12 +918,13 @@ int Feed::totalCount() const { if (d->m_totalCount == -1) { - if (d->m_articlesLoaded) + if (d->m_articlesLoaded) { d->m_totalCount = std::count_if(d->articles.constBegin(), d->articles.constEnd(), [](const Article &art) -> bool { return !art.isDeleted(); }); - else + } else { d->m_totalCount = d->m_archive->totalCount(); + } } return d->m_totalCount; }