changeset 235:263fe6ee0e4e

Fix crash when deleting an entry ListView focused attribute has been removed. Use new get_focus_pos method instead.
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 09 Apr 2013 19:57:37 +0200
parents eba71328b76b
children 8caa74da6a53
files getan/states.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Tue Apr 09 19:56:40 2013 +0200
+++ b/getan/states.py	Tue Apr 09 19:57:37 2013 +0200
@@ -450,7 +450,7 @@
 
     def renew_focus(self):
         e_len = self.view.row_count()
-        f = self.view.focused
+        f = self.view.get_focus_pos()
         if f >= e_len:
             f = e_len - 1
         self.view.set_focus(f)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)