Fix simple error in filter code

Other parts test that the object is valid before calling
.set_active(); follow convention to eliminate needless errors
This commit is contained in:
Mika Bostrom 2009-11-21 23:51:18 +02:00
parent 14ccde73a2
commit d2c25b6d28

View File

@ -312,8 +312,10 @@ class Filters(threading.Thread):
self.cbAllLimits.set_active(False) self.cbAllLimits.set_active(False)
if not self.limits[limit]: if not self.limits[limit]:
if limit.isdigit(): if limit.isdigit():
self.cbFL.set_active(False) if self.cbFl is not None:
self.cbFl.set_active(False)
else: else:
if self.cbNL is not None:
self.cbNL.set_active(False) self.cbNL.set_active(False)
elif limit == "all": elif limit == "all":
if self.limits[limit]: if self.limits[limit]: