* 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>
* src/NavWebPage.py: fix references to places
* src/WriteGedcom.py: Fix media handling, issue error message

View File

@ -145,10 +145,11 @@ class Bookmarks :
index = 0
for person_handle in self.bookmarks:
person = self.db.get_person_from_handle(person_handle)
name = NameDisplay.displayer.display(person)
self.namelist.append([name])
self.namelist.set_row_data(index,person_handle)
index = index + 1
if person:
name = NameDisplay.displayer.display(person)
self.namelist.append([name])
self.namelist.set_row_data(index,person_handle)
index = index + 1
self.response = self.top.run()
if self.response == gtk.RESPONSE_OK: