Don't connect models until loaded

svn: r1565
This commit is contained in:
Don Allingham
2003-05-21 20:15:50 +00:00
parent e727f0075b
commit 1cf00e2a8a
2 changed files with 7 additions and 1 deletions

View File

@ -149,6 +149,9 @@ class ChooseParents:
self.fmodel.clear()
self.mmodel.clear()
self.fmodel.new_model()
self.mmodel.new_model()
pkey = self.person.getId()
gender = self.person.getGender()
if self.father:
@ -194,6 +197,9 @@ class ChooseParents:
self.mlabel.set_label("<b>%s</b>" % _("Mother"))
self.flabel.set_label("<b>%s</b>" % _("Father"))
self.fmodel.connect_model()
self.mmodel.connect_model()
def not_likely(self,person):
"""
Rough attempt to eliminate a few non-realistic relationships. If the person