display available message counters for unsubscribed groups

This commit is contained in:
RetroPooh 2021-02-01 11:52:36 +03:00
parent fe46b0aaa1
commit 2471ebe2d5

View File

@ -556,7 +556,10 @@ void GroupTreeWidget::fillGroupItems(QTreeWidgetItem *categoryItem, const QList<
item->setData(GTW_COLUMN_DATA, ROLE_COLOR, GROUPTREEWIDGET_COLOR_STANDARD);
item->setData(GTW_COLUMN_NAME, Qt::BackgroundRole, QVariant());
}
if (!IS_GROUP_SUBSCRIBED(itemInfo.subscribeFlags)) {
if (itemInfo.max_visible_posts)
item->setText(GTW_COLUMN_UNREAD, QString::number(itemInfo.max_visible_posts));
}
/* Calculate score */
calculateScore(item, filterText);
}