[gnome-chess/gnome-3-8] Stop the clock at the end of the game (cherry picked from commit d8b249f8bbab0f8efe3522d262a66548da5



commit 6de1df7c6afae10f4ca6ed4e5cc8f8174de8287d
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Tue May 21 21:23:51 2013 -0500

    Stop the clock at the end of the game
    (cherry picked from commit d8b249f8bbab0f8efe3522d262a66548da5b4aec)

 src/chess-game.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/chess-game.vala b/src/chess-game.vala
index cbbbddd..c7aa2f2 100644
--- a/src/chess-game.vala
+++ b/src/chess-game.vala
@@ -1455,6 +1455,8 @@ public class ChessGame
         this.result = result;
         this.rule = rule;
         is_started = false;
+        if (_clock != null)
+            _clock.stop();
         ended ();
     }
 


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