* src/PedView.py (on_show_child_menu): Switch to id.
svn: r3045
This commit is contained in:
parent
ffce4f06d5
commit
f824892648
@ -1,5 +1,6 @@
|
|||||||
2004-03-22 Alex Roitman <shura@alex.neuro.umn.edu>
|
2004-03-22 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
* src/docgen/LPRDoc.py: Fix colliding name.
|
* 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>
|
2004-03-21 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/AddMedia.py: GenericTreeModel changes
|
* src/AddMedia.py: GenericTreeModel changes
|
||||||
|
@ -360,13 +360,15 @@ class PedigreeView:
|
|||||||
childlist = []
|
childlist = []
|
||||||
for family_id in p.get_family_id_list():
|
for family_id in p.get_family_id_list():
|
||||||
family = self.parent.db.find_family_from_id(family_id)
|
family = self.parent.db.find_family_from_id(family_id)
|
||||||
for child in family.get_child_id_list():
|
for child_id in family.get_child_id_list():
|
||||||
childlist.append(child)
|
childlist.append(child_id)
|
||||||
return childlist
|
return childlist
|
||||||
|
|
||||||
childlist = find_children(self.active_person)
|
childlist = find_children(self.active_person)
|
||||||
if len(childlist) == 1:
|
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:
|
elif len(childlist) > 1:
|
||||||
myMenu = gtk.Menu()
|
myMenu = gtk.Menu()
|
||||||
for child_id in childlist:
|
for child_id in childlist:
|
||||||
|
Loading…
Reference in New Issue
Block a user