Protection from a bad child drop
svn: r15785
This commit is contained in:
parent
01e354f18d
commit
1b884b129d
@ -56,23 +56,24 @@ class ChildModel(gtk.ListStore):
|
|||||||
index = 1
|
index = 1
|
||||||
for child_ref in self.get_data():
|
for child_ref in self.get_data():
|
||||||
child = db.get_person_from_handle(child_ref.ref)
|
child = db.get_person_from_handle(child_ref.ref)
|
||||||
self.append(row=[
|
if child:
|
||||||
index,
|
self.append(row=[
|
||||||
child.get_gramps_id(),
|
index,
|
||||||
name_displayer.display(child),
|
child.get_gramps_id(),
|
||||||
Utils.gender[child.get_gender()],
|
name_displayer.display(child),
|
||||||
str(child_ref.get_father_relation()),
|
Utils.gender[child.get_gender()],
|
||||||
str(child_ref.get_mother_relation()),
|
str(child_ref.get_father_relation()),
|
||||||
self.column_birth_day(child),
|
str(child_ref.get_mother_relation()),
|
||||||
self.column_death_day(child),
|
self.column_birth_day(child),
|
||||||
self.column_birth_place(child),
|
self.column_death_day(child),
|
||||||
self.column_death_place(child),
|
self.column_birth_place(child),
|
||||||
child.get_handle(),
|
self.column_death_place(child),
|
||||||
name_displayer.sort_string(child.primary_name),
|
child.get_handle(),
|
||||||
self.column_birth_sort(child),
|
name_displayer.sort_string(child.primary_name),
|
||||||
self.column_death_sort(child),
|
self.column_birth_sort(child),
|
||||||
])
|
self.column_death_sort(child),
|
||||||
index += 1
|
])
|
||||||
|
index += 1
|
||||||
|
|
||||||
def get_data(self):
|
def get_data(self):
|
||||||
return self.family.get_child_ref_list()
|
return self.family.get_child_ref_list()
|
||||||
|
Loading…
Reference in New Issue
Block a user