[gnome-clocks] Fix reset of lap count.



commit 55abf48a52e6f3203c9c3ac8e6a793c94bb7e443
Author: MaÃl Lavault <mael lavault mailz org>
Date:   Sun Oct 7 18:10:26 2012 +0200

    Fix reset of lap count.
    
    Lap count was not reseted when the reset button was hit.
    
    Signed-off-by: MaÃl Lavault <mael lavault mailz org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=685194

 gnomeclocks/stopwatch.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnomeclocks/stopwatch.py b/gnomeclocks/stopwatch.py
index 486868c..3b0140d 100644
--- a/gnomeclocks/stopwatch.py
+++ b/gnomeclocks/stopwatch.py
@@ -138,6 +138,7 @@ class Stopwatch(Clock):
         if self.state == Stopwatch.State.STOPPED:
             self.state = Stopwatch.State.RESET
             self.time_diff = 0
+            self.lap = 0
             self.left_label.set_markup(Stopwatch.BUTTON_MARKUP % (_("Start")))
             self.left_button.get_style_context().add_class("clocks-go")
             self.right_button.set_sensitive(False)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]