8824 Fix Pedigreeview crash when selecting Compact view
This commit is contained in:
parent
dd33a4b172
commit
50911b7cf1
@ -981,7 +981,7 @@ class PedigreeView(NavigationView):
|
|||||||
rela = lst[2*i+1][1]
|
rela = lst[2*i+1][1]
|
||||||
line = LineWidget2(1, rela, self.tree_direction)
|
line = LineWidget2(1, rela, self.tree_direction)
|
||||||
|
|
||||||
if lst[((i+1) // 2) - 1] and lst[((i+1) // 2) - 1][2]:
|
if lst[i] and lst[i][2]:
|
||||||
# Required for popup menu
|
# Required for popup menu
|
||||||
line.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
|
line.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
|
||||||
line.connect("button-press-event",
|
line.connect("button-press-event",
|
||||||
@ -1032,7 +1032,7 @@ class PedigreeView(NavigationView):
|
|||||||
pbw, mrela,
|
pbw, mrela,
|
||||||
self.tree_direction)
|
self.tree_direction)
|
||||||
|
|
||||||
if lst[i] and lst[i][2]:
|
if lst[((i+1) // 2) - 1] and lst[((i+1) // 2) - 1][2]:
|
||||||
# Required for popup menu
|
# Required for popup menu
|
||||||
line.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
|
line.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
|
||||||
line.connect("button-press-event",
|
line.connect("button-press-event",
|
||||||
|
Loading…
Reference in New Issue
Block a user