Merge pull request #82 from tecknicaltom/relview_None_handle

Fix for a None handle lookup in relview
This commit is contained in:
Doug Blank 2015-12-27 07:53:50 -05:00
commit 57e349a280

View File

@ -497,7 +497,9 @@ class RelationshipView(NavigationView):
for old_child in self.header.get_children(): for old_child in self.header.get_children():
self.header.remove(old_child) 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: if not person:
self.family_action.set_sensitive(False) self.family_action.set_sensitive(False)
self.order_action.set_sensitive(False) self.order_action.set_sensitive(False)