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