* src/Bookmarks.py (edit): Dont crash if bookmark list contains nonexisting person.

svn: r5000
This commit is contained in:
Martin Hawlisch
2005-08-02 14:07:37 +00:00
parent e7b9924482
commit 10960055c5
2 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
2005-08-02 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/Bookmarks.py (edit): Dont crash if bookmark list contains
nonexisting person.
2005-08-01 Don Allingham <don@gramps-project.org> 2005-08-01 Don Allingham <don@gramps-project.org>
* src/NavWebPage.py: fix references to places * src/NavWebPage.py: fix references to places
* src/WriteGedcom.py: Fix media handling, issue error message * src/WriteGedcom.py: Fix media handling, issue error message

View File

@@ -145,6 +145,7 @@ class Bookmarks :
index = 0 index = 0
for person_handle in self.bookmarks: for person_handle in self.bookmarks:
person = self.db.get_person_from_handle(person_handle) person = self.db.get_person_from_handle(person_handle)
if person:
name = NameDisplay.displayer.display(person) name = NameDisplay.displayer.display(person)
self.namelist.append([name]) self.namelist.append([name])
self.namelist.set_row_data(index,person_handle) self.namelist.set_row_data(index,person_handle)