From b4e465365825b260679e2bbfd764a37b04deb33c Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 24 Dec 2003 17:47:40 +0000 Subject: [PATCH] * src/plugins/Check.py: Fixed handling of Unknown genders in family checks * src/preferences.glade: call on_object_toggled only for elements that need immediate display update * src/GrampsCfg.py: Save data on close - don't rely on on_object_toggled having been called. svn: r2551 --- src/plugins/Check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/Check.py b/src/plugins/Check.py index 9b4abfa71..439d56aff 100644 --- a/src/plugins/Check.py +++ b/src/plugins/Check.py @@ -220,8 +220,8 @@ class CheckIntegrity: if father.getGender() == mother.getGender(): family.setRelationship("Partners") self.fam_rel.append(family) - elif father.getGender() != RelLib.Person.male or \ - mother.getGender() != RelLib.Person.female: + elif father.getGender() == RelLib.Person.female or \ + mother.getGender() == RelLib.Person.male: family.setFather(mother) family.setMother(father) self.fam_rel.append(family)