[gnome-chess] Fixup: don't start clock in untimed games



commit c8199a04e57f0af1b9075f09a018ff6ef93150c9
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Sat Jun 8 20:48:00 2013 -0500

    Fixup: don't start clock in untimed games

 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 e05a832..07cb70d 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -493,7 +493,7 @@ public class Application : Gtk.Application
         save_menu.sensitive = in_history;
         game.start ();
 
-        if (moves.length > 0)
+        if (moves.length > 0 && game.clock != null)
             game.clock.start ();
 
         if (game.result != ChessResult.IN_PROGRESS)


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