From 1fc9c63cc5d707bfb47b1e8f98ddeb69071caf37 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 24 Jul 2003 15:47:28 +0000 Subject: [PATCH] 2003-07-24 Tim Waugh * src/plugins/FilterEditor.py: Fix 'edit' to do so in place. svn: r1927 --- gramps2/src/plugins/FilterEditor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps2/src/plugins/FilterEditor.py b/gramps2/src/plugins/FilterEditor.py index a68e22d92..cbe3bebc5 100644 --- a/gramps2/src/plugins/FilterEditor.py +++ b/gramps2/src/plugins/FilterEditor.py @@ -337,9 +337,9 @@ class FilterEditor: value_list.append(x.get_text()) new_rule = c(value_list) store,iter = self.rlist.get_selected() -# if iter: -# rule = self.rlist.get_object(iter) -# self.filter.delete_rule(rule) + if iter: + rule = self.rlist.get_object(iter) + self.filter.delete_rule(rule) self.filter.add_rule(new_rule) self.draw_rules() self.rule_top.destroy()