5472: Update gramplets when database changed so that they correctly show if they have data. Also remove superfluous updates.

svn: r18679
This commit is contained in:
Nick Hall
2012-01-01 17:58:33 +00:00
parent f6271eb127
commit 24976ab0a6
13 changed files with 3 additions and 42 deletions

View File

@ -97,7 +97,6 @@ class PersonEvents(Events):
"""
def db_changed(self):
self.dbstate.db.connect('person-update', self.update)
self.update()
def active_changed(self, handle):
self.update()
@ -155,7 +154,6 @@ class FamilyEvents(Events):
def db_changed(self):
self.dbstate.db.connect('family-update', self.update)
self.connect_signal('Family', self.update)
self.update()
def update_has_data(self):
active_handle = self.get_active('Family')