- Updated selectFirstFeed() function due to code rewrite

This commit is contained in:
Christophe Dumez 2009-08-23 13:35:45 +00:00
parent 3550e31871
commit 06fb19e8be
4 changed files with 5 additions and 14 deletions

View file

@ -32,8 +32,11 @@ public:
void itemAdded(QTreeWidgetItem *item, RssFile* file) {
mapping[item] = file;
if(file->getType() == RssFile::STREAM)
if(file->getType() == RssFile::STREAM) {
feeds_items[file->getID()] = item;
if(topLevelItemCount() == 1)
setCurrentItem(item);
}
}
void itemRemoved(QTreeWidgetItem *item) {