* 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 4f18f679de
commit b4e4653658

View File

@ -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)