changeset 237:13692255bc71

Fix crash when all entries are moved from entry list Only set focus if position is not None
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 09 Apr 2013 20:40:31 +0200
parents 8caa74da6a53
children e48d6052688f
files getan/walker.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)