From 4385f7c8555133bfeaf6221e8d1b7833ffd137bf Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 26 Jul 2001 15:33:38 +0000 Subject: [PATCH] Don't try to set the active parents relationship if active_parents is None svn: r256 --- gramps/src/gramps_main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps/src/gramps_main.py b/gramps/src/gramps_main.py index 77a18d793..f51e6f842 100755 --- a/gramps/src/gramps_main.py +++ b/gramps/src/gramps_main.py @@ -477,7 +477,7 @@ def on_choose_parents_clicked(obj): family_window = libglade.GladeXML(const.gladeFile,"familyDialog") familyDialog = family_window.get_widget("familyDialog") - if active_parents == active_person.getMainFamily(): + if active_parents and active_parents == active_person.getMainFamily(): family_window.get_widget("mrel").set_text(_("Birth")) family_window.get_widget("frel").set_text(_("Birth")) else: @@ -506,7 +506,8 @@ def on_choose_parents_clicked(obj): text = _("Choose the Parents of %s") % Config.nameof(active_person) family_window.get_widget("chooseTitle").set_text(text) - prel.set_text(active_parents.getRelationship()) + if active_parents: + prel.set_text(active_parents.getRelationship()) familyDialog.show() #-------------------------------------------------------------------------