From 269167765055b454da6dc158ede2be6e299ba774 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 19 Nov 2007 21:42:58 +0000 Subject: [PATCH] - Fixed segfault that would happen when unfiltering files in torrent addition dialog (closes #163379) --- src/PropListDelegate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: