Merge pull request #82 from tecknicaltom/relview_None_handle
Fix for a None handle lookup in relview
This commit is contained in:
commit
57e349a280
@ -497,6 +497,8 @@ class RelationshipView(NavigationView):
|
||||
for old_child in self.header.get_children():
|
||||
self.header.remove(old_child)
|
||||
|
||||
person = None
|
||||
if obj:
|
||||
person = self.dbstate.db.get_person_from_handle(obj)
|
||||
if not person:
|
||||
self.family_action.set_sensitive(False)
|
||||
|
Loading…
Reference in New Issue
Block a user