1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 12:34:19 +00:00

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

This commit is contained in:
Christophe Dumez 2010-01-24 16:46:10 +00:00
parent 335d012d55
commit e8dd7bbcc9

View File

@ -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;
}