Top surnames Gramplet doesn't update when db is closed

Fixes #10073.
This commit is contained in:
prculley 2017-06-07 16:01:46 -05:00 committed by Nick Hall
parent bec8cea3e3
commit 620845bc4f

View File

@ -57,6 +57,7 @@ class TopSurnamesGramplet(Gramplet):
self.dbstate.db.connect('person-update', self.update)
self.dbstate.db.connect('person-rebuild', self.update)
self.dbstate.db.connect('family-rebuild', self.update)
self.set_text(_("No Family Tree loaded."))
def on_load(self):
if len(self.gui.data) > 0: