From 8b10dc0c42fc42dd98c2bf6c24ce1c363f224c0e Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Wed, 8 Jun 2005 21:07:40 +0000 Subject: [PATCH] * src/EditPerson (__init__): Make gender guessing work again svn: r4811 --- gramps2/ChangeLog | 3 +++ gramps2/src/EditPerson.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 3a17487fe..ec16b8ee9 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-06-08 Martin Hawlisch + * src/EditPerson (__init__): Make gender guessing work again + 2005-06-08 Daniel Durand * src/plugins/rel_fr.py: Add more levels; provide fallback phrases. diff --git a/gramps2/src/EditPerson.py b/gramps2/src/EditPerson.py index 1716386c9..332d7737c 100644 --- a/gramps2/src/EditPerson.py +++ b/gramps2/src/EditPerson.py @@ -118,7 +118,7 @@ class EditPerson: self.pdmap = {} self.add_places = [] self.name_display = NameDisplay.displayer - self.should_guess_gender = (person.get_gramps_id() == '' and + self.should_guess_gender = (not person.get_gramps_id() and person.get_gender () == RelLib.Person.UNKNOWN)