* src/EditPerson.py (__init__): Only set update sources if possible

(calls from ChooseParents don't provide the correct parent, but then
the full update goes on anyway).
* src/ChooseParents.py (mother_list_select_row,
father_list_select_row): Comment out auto-selection of parents.


svn: r4139
This commit is contained in:
Alex Roitman
2005-03-08 22:24:41 +00:00
parent cff7c00db4
commit d7fe0d91e6
3 changed files with 13 additions and 2 deletions

View File

@@ -316,7 +316,7 @@ class ChooseParents:
"""
if not father_handle and not mother_handle:
return None
for family_handle in self.db.get_family_handles():
family = self.db.get_family_from_handle(family_handle)
if family.get_father_handle() == father_handle and family.get_mother_handle() == mother_handle:
@@ -376,6 +376,7 @@ class ChooseParents:
else:
self.father = None
return
if not self.parent_selected and self.father:
self.parent_selected = 1
family_handle_list = self.father.get_family_handle_list()
@@ -399,6 +400,7 @@ class ChooseParents:
self.mother = self.db.get_person_from_handle(idlist[0])
else:
self.mother = None
return
if not self.parent_selected and self.mother:
self.parent_selected = 1