changeset 309:bff4877c3e58

Deactivate selection of projects when changing to RunningProjectsState
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 11 Oct 2013 11:07:33 +0200
parents a7ece2df59a2
children 2667bdef021f
files getan/states.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Fri Oct 11 11:07:02 2013 +0200
+++ b/getan/states.py	Fri Oct 11 11:07:33 2013 +0200
@@ -253,6 +253,7 @@
     def __init__(self, controller, view, project):
         super(RunningProjectsState, self).__init__(controller, view)
         self.project = project
+        self.view.deactivate_selection()
         signal.signal(signal.SIGALRM, self.handle_signal)
         signal.alarm(1)
 
@@ -328,6 +329,7 @@
                 proj.start += datetime.now() - self.break_start
         self.controller.view.set_footer_text(self.msg('description'),
                                              'question', edit=True)
+        self.view.enable_selection()
         self.set_next_state(
             DescriptionProjectsState(
                 self.controller, self.view,
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)