5442: Clear pedigree view when creating new database and the active person is not set
svn: r18667
This commit is contained in:
parent
09f0a181b8
commit
2fefd97642
@ -1017,6 +1017,11 @@ class PedigreeView(NavigationView):
|
|||||||
lst = [None] * (2**self.force_size)
|
lst = [None] * (2**self.force_size)
|
||||||
self.find_tree(person, 0, 1, lst)
|
self.find_tree(person, 0, 1, lst)
|
||||||
|
|
||||||
|
# Purge current table content
|
||||||
|
for child in self.table.get_children():
|
||||||
|
child.destroy()
|
||||||
|
self.table.resize(1, 1)
|
||||||
|
|
||||||
if person:
|
if person:
|
||||||
self.rebuild(self.table, pos, lst, self.force_size)
|
self.rebuild(self.table, pos, lst, self.force_size)
|
||||||
|
|
||||||
@ -1028,11 +1033,6 @@ class PedigreeView(NavigationView):
|
|||||||
All display options process in this function.
|
All display options process in this function.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Purge current table content
|
|
||||||
for child in table_widget.get_children():
|
|
||||||
child.destroy()
|
|
||||||
table_widget.resize(1, 1)
|
|
||||||
|
|
||||||
# Calculate maximum table size
|
# Calculate maximum table size
|
||||||
xmax = 0
|
xmax = 0
|
||||||
ymax = 0
|
ymax = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user