diff --git a/src/plugins/gramplet/Citations.py b/src/plugins/gramplet/Citations.py index 2eb330ca2..a91dbf0be 100644 --- a/src/plugins/gramplet/Citations.py +++ b/src/plugins/gramplet/Citations.py @@ -289,8 +289,8 @@ class PersonCitations(Citations): self.model.clear() self.callman.unregister_all() - self.callman.register_obj(active) if active: + self.callman.register_obj(active) self.display_citations(active) else: self.set_has_data(False) @@ -361,8 +361,8 @@ class EventCitations(Citations): self.model.clear() self.callman.unregister_all() - self.callman.register_obj(active) if active: + self.callman.register_obj(active) self.display_citations(active) else: self.set_has_data(False) @@ -404,8 +404,8 @@ class FamilyCitations(Citations): self.model.clear() self.callman.unregister_all() - self.callman.register_obj(active) if active: + self.callman.register_obj(active) self.display_citations(active) else: self.set_has_data(False) @@ -460,8 +460,8 @@ class PlaceCitations(Citations): self.model.clear() self.callman.unregister_all() - self.callman.register_obj(active) if active: + self.callman.register_obj(active) self.display_citations(active) else: self.set_has_data(False) @@ -503,8 +503,8 @@ class MediaCitations(Citations): self.model.clear() self.callman.unregister_all() - self.callman.register_obj(active) if active: + self.callman.register_obj(active) self.display_citations(active) else: self.set_has_data(False)