diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 442992cdc..65890314a 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,6 @@ 2005-06-26 Don Allingham + * src/PeopleView.py: partial implementation of the alexrithm to + select a new person after a person has been deleted * src/const.py.in: fix confidence display * src/ReadXML.py: prevent duplicate place names on import * src/ReadGedcom.py: prevent duplicate place names on import diff --git a/gramps2/src/PeopleView.py b/gramps2/src/PeopleView.py index 520aa5a68..a89db1dd3 100644 --- a/gramps2/src/PeopleView.py +++ b/gramps2/src/PeopleView.py @@ -202,6 +202,11 @@ class PeopleView: expected, not an ID""" path = self.person_model.on_get_path(person.get_handle()) self.person_model.row_deleted(path) + (col,row) = path + if row > 0: + self.person_selection.select_path((col,row-1)) + elif row == 0 and self.person.on_get_iter(path): + self.person_selection.select_path(path) def remove_from_history(self,person_handle,old_id=None): """Removes a person from the history list"""