2003-07-24 Tim Waugh <twaugh@redhat.com>

* src/plugins/FilterEditor.py: Fix 'edit' to do so in place.


svn: r1927
This commit is contained in:
Tim Waugh 2003-07-24 15:47:28 +00:00
parent ab8f082d42
commit 31d6b6d39f

View File

@ -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()