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:
parent
14ccde73a2
commit
d2c25b6d28
|
@ -312,8 +312,10 @@ 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:
|
||||
if self.cbNL is not None:
|
||||
self.cbNL.set_active(False)
|
||||
elif limit == "all":
|
||||
if self.limits[limit]:
|
||||
|
|
Loading…
Reference in New Issue
Block a user