Fix crash on mouse click in change view
The name of the initial focus method in the hypertext widget changed from focusItemLeft to focusFirstItem. This would cause a crash if the mouse was clicked in the change screen when an item in the hypertext widget was not already focused. Change-Id: I046115f43bdd41640ebdaf45198ff3ae4770bb97
This commit is contained in:
parent
705ca5c766
commit
cff0b0cc9a
@ -213,7 +213,7 @@ class HyperText(urwid.Text):
|
||||
item = self.getItemAtCoords(size[0], col, row)
|
||||
if item is None:
|
||||
if self.focused_index is None:
|
||||
self.focusItemLeft()
|
||||
self.focusFirstItem()
|
||||
return False
|
||||
if event == 'mouse press':
|
||||
self.focusItem(item)
|
||||
|
Loading…
x
Reference in New Issue
Block a user