Browse Source

- Fix possible race condition in RSS that could cause crash on startup (bug #511441)

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
e8dd7bbcc9
  1. 4
      src/feedList.h

4
src/feedList.h

@ -154,7 +154,9 @@ signals:
protected slots: protected slots:
void updateCurrentFeed(QTreeWidgetItem* new_item) { void updateCurrentFeed(QTreeWidgetItem* new_item) {
if((new_item && getItemType(new_item) == RssFile::STREAM) || new_item == unread_item) if(!new_item) return;
if(!mapping.contains(new_item)) return;
if((getItemType(new_item) == RssFile::STREAM) || new_item == unread_item)
current_feed = new_item; current_feed = new_item;
} }

Loading…
Cancel
Save