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,7 +497,9 @@ class RelationshipView(NavigationView):
|
||||
for old_child in self.header.get_children():
|
||||
self.header.remove(old_child)
|
||||
|
||||
person = self.dbstate.db.get_person_from_handle(obj)
|
||||
person = None
|
||||
if obj:
|
||||
person = self.dbstate.db.get_person_from_handle(obj)
|
||||
if not person:
|
||||
self.family_action.set_sensitive(False)
|
||||
self.order_action.set_sensitive(False)
|
||||
|
Loading…
Reference in New Issue
Block a user