# HG changeset patch # User Björn Ricks # Date 1365532831 -7200 # Node ID 13692255bc7111aef9fccb6e059b02dca8abb714 # Parent 8caa74da6a533c079e012f0c3c30d1a4f01080d3 Fix crash when all entries are moved from entry list Only set focus if position is not None diff -r 8caa74da6a53 -r 13692255bc71 getan/walker.py --- a/getan/walker.py Tue Apr 09 20:01:17 2013 +0200 +++ b/getan/walker.py Tue Apr 09 20:40:31 2013 +0200 @@ -20,6 +20,9 @@ self.position = None def set_focus(self, position): + if position is None: + return + super(ListWalker, self).set_focus(position) if self.widget and self.position != position: self.position = position