* src/PeopleView.py: fix on_get_iter on delete person

svn: r4886
This commit is contained in:
Don Allingham 2005-06-28 03:35:24 +00:00
parent 7312561e7c
commit 89f33a6be4
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2005-06-27 Don Allingham <don@gramps-project.org>
* src/PeopleView.py: fix on_get_iter on delete person
2005-06-27 Julio Sanchez <jsanchez@users.sourceforge.net>
* src/po/es.po: Translation fixes
* src/GenericFilter.py: Do not attempt to translate user filters,

View File

@ -201,11 +201,11 @@ class PeopleView:
"""Remove the selected person from the list. A person object is
expected, not an ID"""
path = self.person_model.on_get_path(person.get_handle())
self.person_model.row_deleted(path)
#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):
elif row == 0 and self.person_model.on_get_iter(path):
self.person_selection.select_path(path)
def remove_from_history(self,person_handle,old_id=None):