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 7cfbe35179
commit 1fc9c63cc5

View File

@ -337,9 +337,9 @@ class FilterEditor:
value_list.append(x.get_text()) value_list.append(x.get_text())
new_rule = c(value_list) new_rule = c(value_list)
store,iter = self.rlist.get_selected() store,iter = self.rlist.get_selected()
# if iter: if iter:
# rule = self.rlist.get_object(iter) rule = self.rlist.get_object(iter)
# self.filter.delete_rule(rule) self.filter.delete_rule(rule)
self.filter.add_rule(new_rule) self.filter.add_rule(new_rule)
self.draw_rules() self.draw_rules()
self.rule_top.destroy() self.rule_top.destroy()