From 9c68130bca10a4f011c54e1db68fcdcc3d8bde74 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 1 Jul 2003 19:04:47 +0000 Subject: [PATCH] 2003-07-01 Tim Waugh * src/EditPerson.py: Don't guess gender if it has already been set. svn: r1808 --- gramps2/ChangeLog | 3 +++ gramps2/src/EditPerson.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 09c55f999..0f711338e 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2003-07-01 Tim Waugh + * src/EditPerson.py: Don't guess gender if it has already been set. + 2003-06-30 Tim Waugh * src/plugins/Makefile.am: Ship FanChart.py. * src/plugins/Ancestors.py (generation): Report on the correct diff --git a/gramps2/src/EditPerson.py b/gramps2/src/EditPerson.py index a57201c4d..0e752e502 100644 --- a/gramps2/src/EditPerson.py +++ b/gramps2/src/EditPerson.py @@ -86,7 +86,9 @@ class EditPerson: self.update_death = 0 self.pdmap = {} self.add_places = [] - self.should_guess_gender = (self.original_id == '') + self.should_guess_gender = (self.original_id == '' and + person.getGender () == + RelLib.Person.unknown) for key in db.getPlaceKeys(): p = db.getPlaceDisplay(key)