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,9 +312,11 @@ class Filters(threading.Thread):
self.cbAllLimits.set_active(False)
if not self.limits[limit]:
if limit.isdigit():
self.cbFL.set_active(False)
if self.cbFl is not None:
self.cbFl.set_active(False)
else:
self.cbNL.set_active(False)
if self.cbNL is not None:
self.cbNL.set_active(False)
elif limit == "all":
if self.limits[limit]:
#for cb in self.cbLimits.values():