From e8dd7bbcc962859f849063c119df973564ebdb61 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 24 Jan 2010 16:46:10 +0000 Subject: [PATCH] - Fix possible race condition in RSS that could cause crash on startup (bug #511441) --- src/feedList.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/feedList.h b/src/feedList.h index bbb79677f..4542df27f 100644 --- a/src/feedList.h +++ b/src/feedList.h @@ -154,7 +154,9 @@ signals: protected slots: 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; }