4906: Infinitive loop when trying to remove matched person/event filter rules

svn: r17626
This commit is contained in:
Michiel Nauta 2011-05-30 20:23:02 +00:00
parent 2cc2dcf7be
commit 536f15f53d

View File

@ -1112,6 +1112,8 @@ class FilterEditor(ManagedWindow.ManagedWindow):
filters = self.filterdb.get_filters(space) filters = self.filterdb.get_filters(space)
name = gfilter.get_name() name = gfilter.get_name()
for the_filter in filters: for the_filter in filters:
if the_filter.get_name() == name:
continue
for rule in the_filter.get_rules(): for rule in the_filter.get_rules():
values = rule.values() values = rule.values()
if issubclass(rule.__class__, MatchesFilterBase) \ if issubclass(rule.__class__, MatchesFilterBase) \