From da4981e9a0a419e3c9b30972f842f5c7999fe4cb Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 19 May 2012 17:25:54 +0000 Subject: [PATCH] 5279: i can't export my database svn: r19592 --- src/ExportOptions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ExportOptions.py b/src/ExportOptions.py index 7fe3c9123..65678394f 100644 --- a/src/ExportOptions.py +++ b/src/ExportOptions.py @@ -516,10 +516,10 @@ class WriterOptionBox(object): if self.restrict_num > 0 and progress: progress.progress_cnt += 1 - if not self.cfilter.is_empty() and progress: + if (self.cfilter != None and (not self.cfilter.is_empty())) and progress: progress.progress_cnt += 1 - if not self.nfilter.is_empty() and progress: + if (self.nfilter != None and (not self.nfilter.is_empty())) and progress: progress.progress_cnt += 1 if self.reference_num > 0 and progress: @@ -580,7 +580,7 @@ class WriterOptionBox(object): # If the filter returned by cfilter is not empty, apply the # FilterProxyDb (Person Filter) elif proxy_name == "person": - if not self.cfilter.is_empty(): + if self.cfilter != None and not self.cfilter.is_empty(): if progress: progress.reset(_("Applying selected person filter")) progress.progress_cnt += 1 @@ -590,7 +590,7 @@ class WriterOptionBox(object): # Apply the Note Filter elif proxy_name == "note": - if not self.nfilter.is_empty(): + if self.nfilter != None and not self.nfilter.is_empty(): if progress: progress.reset(_("Applying selected note filter")) progress.progress_cnt += 1