Fix bug in citations bottombar gramplet

svn: r21701
This commit is contained in:
Nick Hall 2013-03-19 23:14:56 +00:00
parent 0fbbbb6ebc
commit ada6a11ed7

View File

@ -289,8 +289,8 @@ class PersonCitations(Citations):
self.model.clear() self.model.clear()
self.callman.unregister_all() self.callman.unregister_all()
self.callman.register_obj(active)
if active: if active:
self.callman.register_obj(active)
self.display_citations(active) self.display_citations(active)
else: else:
self.set_has_data(False) self.set_has_data(False)
@ -361,8 +361,8 @@ class EventCitations(Citations):
self.model.clear() self.model.clear()
self.callman.unregister_all() self.callman.unregister_all()
self.callman.register_obj(active)
if active: if active:
self.callman.register_obj(active)
self.display_citations(active) self.display_citations(active)
else: else:
self.set_has_data(False) self.set_has_data(False)
@ -404,8 +404,8 @@ class FamilyCitations(Citations):
self.model.clear() self.model.clear()
self.callman.unregister_all() self.callman.unregister_all()
self.callman.register_obj(active)
if active: if active:
self.callman.register_obj(active)
self.display_citations(active) self.display_citations(active)
else: else:
self.set_has_data(False) self.set_has_data(False)
@ -460,8 +460,8 @@ class PlaceCitations(Citations):
self.model.clear() self.model.clear()
self.callman.unregister_all() self.callman.unregister_all()
self.callman.register_obj(active)
if active: if active:
self.callman.register_obj(active)
self.display_citations(active) self.display_citations(active)
else: else:
self.set_has_data(False) self.set_has_data(False)
@ -503,8 +503,8 @@ class MediaCitations(Citations):
self.model.clear() self.model.clear()
self.callman.unregister_all() self.callman.unregister_all()
self.callman.register_obj(active)
if active: if active:
self.callman.register_obj(active)
self.display_citations(active) self.display_citations(active)
else: else:
self.set_has_data(False) self.set_has_data(False)