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,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)