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:
James E. Blair 2014-07-14 22:17:48 -07:00
parent 705ca5c766
commit cff0b0cc9a
1 changed files with 1 additions and 1 deletions

View File

@ -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)