Merge pull request #84 from tecknicaltom/more_None_handle_fixes

fixes for None handle errors: single-parent family
This commit is contained in:
Nick Hall 2015-12-29 23:32:34 +00:00
commit 39c8d33169
2 changed files with 5 additions and 1 deletions

View File

@ -1632,6 +1632,8 @@ class FanChartGrampsGUI(object):
sp_id = family.get_mother_handle()
else:
sp_id = family.get_father_handle()
if not sp_id:
continue
spouse = self.dbstate.db.get_person_from_handle(sp_id)
if not spouse:
continue
@ -1743,6 +1745,8 @@ class FanChartGrampsGUI(object):
no_parents = 1
par_list = find_parents(self.dbstate.db,person)
for par_id in par_list:
if not par_id:
continue
par = self.dbstate.db.get_person_from_handle(par_id)
if not par:
continue

View File

@ -1056,7 +1056,7 @@ class RelationshipView(NavigationView):
link_label.show()
vbox.pack_start(link_label, True, True, 0)
if self.show_details:
if self.show_details and handle:
value = self.info_string(handle)
if value:
vbox.pack_start(widgets.MarkupLabel(value), True, True, 0)