- Always keep number of unread news per folders up to date

- RefreshAllFeeds() only sets loading.png icon for feeds (and not folders)
This commit is contained in:
Christophe Dumez 2009-08-23 13:05:47 +00:00
parent f2d2e70967
commit e126de8ff5
3 changed files with 24 additions and 11 deletions

View file

@ -49,8 +49,11 @@ RssFolder::~RssFolder() {
}
unsigned int RssFolder::getNbUnRead() const {
// FIXME
return 0;
unsigned int nb_unread = 0;
foreach(RssFile *file, this->values()) {
nb_unread += file->getNbUnRead();
}
return nb_unread;
}
RssFile::FileType RssFolder::getType() const {