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,9 +312,11 @@ 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:
|
||||||
self.cbNL.set_active(False)
|
if self.cbNL is not None:
|
||||||
|
self.cbNL.set_active(False)
|
||||||
elif limit == "all":
|
elif limit == "all":
|
||||||
if self.limits[limit]:
|
if self.limits[limit]:
|
||||||
#for cb in self.cbLimits.values():
|
#for cb in self.cbLimits.values():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user