[Getan-commits] [PATCH 14 of 32] Deactivate selection of projects when changing to RunningProjectsState

Wald Commits scm-commit at wald.intevation.org
Fri Oct 11 14:33:58 CEST 2013


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1381482453 -7200
# Node ID bff4877c3e583aedd1faf6ca168c86f808cf7608
# Parent  a7ece2df59a2f04aeac951813f2f122b98197732
Deactivate selection of projects when changing to RunningProjectsState

diff -r a7ece2df59a2 -r bff4877c3e58 getan/states.py
--- 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,


More information about the Getan-commits mailing list