update unread counts after batched feed fetch

This commit is contained in:
Martin Rotter 2023-01-11 13:43:51 +01:00
parent 1f988b8a60
commit ebfd27c742
2 changed files with 2 additions and 2 deletions

View File

@ -1419,8 +1419,6 @@ QPair<int, int> DatabaseQueries::updateMessages(QSqlDatabase db,
QString txt = bulk_error.text() + bulk_error.databaseText() + bulk_error.driverText();
qCriticalNN << LOGSEC_DB << "Failed bulk insert of articles:" << QUOTE_W_SPACE_DOT(txt);
IOFactory::writeFile("aaa.sql", final_bulk.toUtf8());
}
else {
// OK, we bulk-inserted many messages but the thing is that they do not

View File

@ -350,6 +350,8 @@ void FeedReader::executeNextAutoUpdate() {
void FeedReader::onFeedUpdatesFinished(FeedDownloadResults updated_feeds) {
m_feedsModel->reloadWholeLayout();
m_feedsModel->notifyWithCounts();
emit feedUpdatesFinished(updated_feeds);
}