changeset 294:fdd086acdf9b

Set correct next state if to be subtracted seconds are greater then the actual measured seconds
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 24 Jun 2013 11:58:07 +0200
parents 700fc5416c32
children abfa55c7c2b2
files getan/states.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Mon Jun 24 11:57:22 2013 +0200
+++ b/getan/states.py	Mon Jun 24 11:58:07 2013 +0200
@@ -395,7 +395,8 @@
         sec = minutes * 60
         if sec > self.state.sec:
             self.view.show_total_time()
-            return self.state
+            self.set_next_state(self.state)
+            return False
         project = self.project
         project.start += timedelta(minutes=minutes)
         self.state.sec -= sec
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)