From cff0b0cc9a14551d041426ca679c723187438d2c Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 14 Jul 2014 22:17:48 -0700 Subject: [PATCH] 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 --- gertty/mywid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gertty/mywid.py b/gertty/mywid.py index bdd6b12..1869218 100644 --- a/gertty/mywid.py +++ b/gertty/mywid.py @@ -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)