[gnome-chess] Fix the pause functionality on timer



commit 3e6ccc1f4de13762d153a288c91f310b0d17ea78
Author: Sahil Sareen <sahil sareen hotmail com>
Date:   Wed Dec 10 19:38:39 2014 +0530

    Fix the pause functionality on timer
    
    Fixes issues:
    Bug 740988 - Timer is dead in a scenario
    Bug 741119 - Pause seems to be broken

 lib/chess-clock.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/chess-clock.vala b/lib/chess-clock.vala
index f8dd1ee..093ccf3 100644
--- a/lib/chess-clock.vala
+++ b/lib/chess-clock.vala
@@ -105,6 +105,7 @@ public class ChessClock : Object
 
         timer.stop ();
         stop_watching_timer ();
+       is_active = false;
     }
 
     public void unpause ()
@@ -114,6 +115,7 @@ public class ChessClock : Object
 
         timer  continue ();
         watch_timer ();
+       is_active = true;
     }
 
     private void watch_timer ()


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