[gnome-chess] Don't (un)pause game after it's complete



commit c22978ab3ed9960f307c62cb3aed04bc2c55f8ca
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Fri Aug 2 20:17:24 2013 -0500

    Don't (un)pause game after it's complete
    
    Using the app menu could restart the timer after the game's over... not
    good.

 src/gnome-chess.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 3af2869..f284c25 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1228,7 +1228,7 @@ public class Application : Gtk.Application
 
     public void set_paused_state (bool paused)
     {
-        if (paused == is_paused)
+        if (paused == is_paused || game.result != ChessResult.IN_PROGRESS)
             return;
 
         is_paused = paused;


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