0001702: invoking family group reports crashes gramps

svn: r9986
This commit is contained in:
Brian Matherly 2008-02-02 21:23:08 +00:00
parent d9a1acc4f5
commit 08c54e0d2e
3 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-02-02 Brian Matherly <brian@gramps-project.org>
* src/PluginUtils/_GuiOptions.py:
* src/plugins/FamilyGroup.py:
0001702: invoking family group reports crashes gramps
2008-02-02 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_Endnotes.py:
0001704: Det. anc. report - newline needed after endnote entries.

View File

@ -516,8 +516,9 @@ class GuiFamilyOption(gtk.HBox):
# Finally, take any family you can find.
family_list = self.__db.get_family_handles()
family = self.__db.get_family_from_handle(family_list[0])
self.__update_family(family)
if family_list:
family = self.__db.get_family_from_handle(family_list[0])
self.__update_family(family)
def __get_family_clicked(self, obj): # IGNORE:W0613 - obj is unused
"""

View File

@ -67,7 +67,10 @@ class FamilyGroup(Report):
family_id = menu.get_option_by_name('family_id').get_value()
family = database.get_family_from_gramps_id(family_id)
self.family_handle = family.get_handle()
if family:
self.family_handle = family.get_handle()
else:
self.family_handle = None
self.recursive = menu.get_option_by_name('recursive').get_value()
self.missingInfo = menu.get_option_by_name('missinginfo').get_value()