BUGFIX: Fix race condition in RSS that could cause a crash on startup

This commit is contained in:
Christophe Dumez
2010-01-24 16:50:48 +00:00
parent e9b6a726e3
commit ec1a06d7c8
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
- BUGFIX: Fix overwrite check when renaming a folder in a torrent - BUGFIX: Fix overwrite check when renaming a folder in a torrent
- BUGFIX: Force a recheck after renaming files to avoid overwriting - BUGFIX: Force a recheck after renaming files to avoid overwriting
- BUGFIX: Improve "Open destination folder" behavior - BUGFIX: Improve "Open destination folder" behavior
- BUGFIX: Fix race condition in RSS that could cause a crash on startup
- COSMETIC: Improved transfer speed display in peers list - COSMETIC: Improved transfer speed display in peers list
* Wed Jan 20 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.1 * Wed Jan 20 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.1

View File

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