* src/ChooseParents.py: fix parent selection

* src/FamilyView.py: fix update of parents after selction
* src/PeopleView.py: fix update of parents after selction
* src/gramps_main.py: fix update of parents after selction
* src/EditPerson.py: fix person id reference


svn: r3244
This commit is contained in:
Don Allingham
2004-06-29 03:51:49 +00:00
parent 4a3b978f9e
commit 72a04eef03
6 changed files with 23 additions and 21 deletions

View File

@@ -1777,7 +1777,7 @@ class EditPerson:
"""Reorder the child list to put the specified person in his/her
correct birth order. Only check *valid* birthdates. Move the person
as short a distance as possible."""
if (self.birth_dates_in_order(list)):
return(list)
@@ -1790,7 +1790,8 @@ class EditPerson:
person_bday = "99999999"
# First, see if the person needs to be moved forward in the list
index = list.index(person)
index = list.index(person.get_id())
target = index
for i in range(index-1, -1, -1):
other = self.db.try_to_find_person_from_id(list[i])