* src/FamilyView.py (change_families): Avoid exception if family does not contain parents
svn: r5446
This commit is contained in:
parent
d239c38730
commit
f6aead38f0
@ -1,5 +1,7 @@
|
||||
2005-11-28 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||
* NEWS: Better support for unicode filenames
|
||||
* src/FamilyView.py (change_families): Avoid exception if family
|
||||
does not contain parents
|
||||
|
||||
2005-11-28 Julio Sanchez <jsanchez@users.sourceforge.net>
|
||||
* src/DateParser.py: match modifiers in reverse length order so that
|
||||
|
@ -941,8 +941,11 @@ class FamilyView:
|
||||
|
||||
if family.get_father_handle():
|
||||
person_handle = family.get_father_handle()
|
||||
else:
|
||||
elif family.get_mother_handle():
|
||||
person_handle = family.get_mother_handle()
|
||||
else:
|
||||
#family does not contain parants
|
||||
return
|
||||
person = self.parent.db.get_person_from_handle(person_handle)
|
||||
self.parent.change_active_person(person)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user