* src/EditPerson.py: properly handled added name types for the

preferred name


svn: r5441
This commit is contained in:
Don Allingham 2005-11-27 03:58:04 +00:00
parent ea9e35399a
commit 516f12b46e
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-11-26 Don Allingham <don@gramps-project.org>
* src/EditPerson.py: properly handled added name types for the
preferred name
2005-11-25 Wayne Bergeron <wb@vallnet.com>
* src/GenericFilter.py
(IsLessThanNthGenerationAncestorOfDefaultPerson): Add new filter rule.

View File

@ -1726,8 +1726,9 @@ class EditPerson:
if prefix != name.get_surname_prefix():
name.set_surname_prefix(prefix)
if const.NameTypesMap.has_value(ntype):
ntype = const.NameTypesMap.find_key(ntype)
if ntype:
if const.NameTypesMap.has_value(ntype):
ntype = const.NameTypesMap.find_key(ntype)
else:
ntype = "Birth Name"