* 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
This commit is contained in:
Don Allingham 2003-12-24 17:47:40 +00:00
parent e8aa50f8b4
commit 367594dc71

View File

@ -220,8 +220,8 @@ class CheckIntegrity:
if father.getGender() == mother.getGender(): if father.getGender() == mother.getGender():
family.setRelationship("Partners") family.setRelationship("Partners")
self.fam_rel.append(family) self.fam_rel.append(family)
elif father.getGender() != RelLib.Person.male or \ elif father.getGender() == RelLib.Person.female or \
mother.getGender() != RelLib.Person.female: mother.getGender() == RelLib.Person.male:
family.setFather(mother) family.setFather(mother)
family.setMother(father) family.setMother(father)
self.fam_rel.append(family) self.fam_rel.append(family)