Crash on family with no parents

svn: r15532
This commit is contained in:
Doug Blank 2010-06-05 11:36:28 +00:00
parent b70e874315
commit 937c8368ac

View File

@ -535,7 +535,7 @@ class EditFamily(EditPrimary):
self.child_tab.rebuild()
def get_menu_title(self):
if self.obj.get_handle():
if self.obj and self.obj.get_handle():
dialog_title = Utils.family_name(self.obj, self.db, _("New Family"))
dialog_title = _("Family") + ': ' + dialog_title
else: