changeset 223:aa7b1efb7689

Fix setting the focus in the ProjectList
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 05 Apr 2013 20:09:26 +0200 (2013-04-05)
parents 24709f93bf5f
children c8f85809607b
files getan/view.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/getan/view.py	Fri Apr 05 20:08:46 2013 +0200
+++ b/getan/view.py	Fri Apr 05 20:09:26 2013 +0200
@@ -286,8 +286,7 @@
         for proj_node in self.rows:
             if proj_node.item.key == project.key:
                 idx = self.rows.index(proj_node)
-                self.update_focus(idx, self.focused)
-                self.focused = idx
+                self.set_focus(idx)
                 self.select()
                 break
 
@@ -297,8 +296,7 @@
             self.project_mode = 0
         logger.debug("Switching project mode to %s" % self.project_mode)
         self.update_rows()
-        self.controller.update_project_list()
-        self.update_focus(0)
+        self.set_focus(0)
 
 
 class EntryNode(urwid.WidgetWrap):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)