changeset 307:b97d18d58f85

We already have the project here therefore pass it directly to the methods Using item_in_focus may be dangerous because a user may have already selected another element.
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 11 Oct 2013 11:05:22 +0200 (2013-10-11)
parents afe36c18417f
children a7ece2df59a2
files getan/states.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Fri Oct 11 11:03:50 2013 +0200
+++ b/getan/states.py	Fri Oct 11 11:05:22 2013 +0200
@@ -168,9 +168,8 @@
         if proj:
             self.reset()
             self.view.select_project(proj)
-            self.controller.start_project(self.view.item_in_focus())
-            self.controller.update_entries(
-                self.view.item_in_focus())
+            self.controller.start_project(proj)
+            self.controller.update_entries(proj)
             self.set_next_state(
                 RunningProjectsState(self.controller, self.view,
                                      proj))
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)