* 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,10 +145,11 @@ 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)
name = NameDisplay.displayer.display(person) if person:
self.namelist.append([name]) name = NameDisplay.displayer.display(person)
self.namelist.set_row_data(index,person_handle) self.namelist.append([name])
index = index + 1 self.namelist.set_row_data(index,person_handle)
index = index + 1
self.response = self.top.run() self.response = self.top.run()
if self.response == gtk.RESPONSE_OK: if self.response == gtk.RESPONSE_OK: