* src/PedView.py (on_show_child_menu): Switch to id.

svn: r3045
This commit is contained in:
Alex Roitman 2004-03-22 21:04:47 +00:00
parent 95216d9cb0
commit f7037df414
2 changed files with 14 additions and 11 deletions

View File

@ -1,5 +1,6 @@
2004-03-22 Alex Roitman <shura@alex.neuro.umn.edu>
* src/docgen/LPRDoc.py: Fix colliding name.
* src/PedView.py (on_show_child_menu): Switch to id.
2004-03-21 Don Allingham <dallingham@users.sourceforge.net>
* src/AddMedia.py: GenericTreeModel changes

View File

@ -360,13 +360,15 @@ class PedigreeView:
childlist = []
for family_id in p.get_family_id_list():
family = self.parent.db.find_family_from_id(family_id)
for child in family.get_child_id_list():
childlist.append(child)
for child_id in family.get_child_id_list():
childlist.append(child_id)
return childlist
childlist = find_children(self.active_person)
if len(childlist) == 1:
self.load_canvas(childlist[0])
child = self.parent.db.find_person_from_id(childlist[0])
if child:
self.load_canvas(child)
elif len(childlist) > 1:
myMenu = gtk.Menu()
for child_id in childlist: