Top surnames Gramplet doesn't update when db is closed

Fixes #10073.
This commit is contained in:
prculley authored and Nick Hall committed 2017-06-16 17:54:45 +01:00
1 parent bec8cea3e3
commit 620845bc4f
1 file changed
+1
@@ -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: