[gnome-chess/gnome-3-8] Fixup: don't start clock in untimed games (cherry picked from commit 8705a4adf3c08cba03f4681580ec7dd



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

    Fixup: don't start clock in untimed games
    (cherry picked from commit 8705a4adf3c08cba03f4681580ec7ddde502cda4)

 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 8586391..13f9edf 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -492,7 +492,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]