- Fix "Unread" name disapearing on update

This commit is contained in:
Christophe Dumez 2009-08-24 06:31:11 +00:00
parent 480d00d747
commit df0f01cd71

View file

@ -466,7 +466,12 @@ void RSSImp::updateItemsInfos(QList<QTreeWidgetItem *> items) {
void RSSImp::updateItemInfos(QTreeWidgetItem *item) { void RSSImp::updateItemInfos(QTreeWidgetItem *item) {
RssFile *rss_item = listStreams->getRSSItem(item); RssFile *rss_item = listStreams->getRSSItem(item);
item->setText(0, rss_item->getName() + QString::fromUtf8(" (") + QString::number(rss_item->getNbUnRead(), 10)+ QString(")")); QString name;
if(rss_item == rssmanager)
name = tr("Unread");
else
name = rss_item->getName();
item->setText(0, name + QString::fromUtf8(" (") + QString::number(rss_item->getNbUnRead(), 10)+ QString(")"));
// If item has a parent, update it too // If item has a parent, update it too
if(item->parent()) if(item->parent())
updateItemInfos(item->parent()); updateItemInfos(item->parent());