From 26b6c26ea8f3b8029dfa3a829be0e3b66cc3bc5c Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 19 Nov 2007 21:44:21 +0000 Subject: [PATCH] - Fixed segfault that would happen when unfiltering files in torrent addition dialog (closes #163379) --- TODO | 3 +++ src/PropListDelegate.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 436af96c1..12be21f51 100644 --- a/TODO +++ b/TODO @@ -60,3 +60,6 @@ rc8->final? changelog: - BUGFIX: Save fast resume data regularly (every 10 seconds) to avoid downloading from scratch if qBittorrent crashes - BUGFIX: Do not save fastresume data for checking torrents anymore - BUGFIX: Saving trackers file only when necessary +- BUGFIX: Fixed possible segfault when unfiltering files in torrent addition dialog + + diff --git a/src/PropListDelegate.h b/src/PropListDelegate.h index 701ef72e0..c369d47bb 100644 --- a/src/PropListDelegate.h +++ b/src/PropListDelegate.h @@ -181,7 +181,8 @@ class PropListDelegate: public QItemDelegate { // } else { model->setData(index, QVariant(HIGH)); model->setData(index, QVariant(NORMAL)); - *filteredFilesChanged = true; + if(filteredFilesChanged != 0) + *filteredFilesChanged = true; // } break; case 2: