[gnome-chess] Remove game from history after "Abandon Game"



commit 2c9ccb7b77ddb3c838654a416e74b542e6cd4d03
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Aug 13 10:42:34 2013 -0500

    Remove game from history after "Abandon Game"
    
    When starting a new game despite not having completed the current game,
    the user may choose to either "Abandon Game" or to save the game.
    However, Abandon Game currently autosaves the game so that it will be
    loaded in the future.  This is annoying as the user explicitly decided
    to not save the game.  Actually discard the game in this scenario.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705878

 src/gnome-chess.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 3c7300e..ed7a634 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1146,10 +1146,11 @@ public class Application : Gtk.Application
                 /* Your very last chance to save */
                 save_game (_("_Discard"), _("_Save"));
             }
-            else if (game.result != ChessResult.IN_PROGRESS)
+            else
             {
                 warn_if_fail (result == Gtk.ResponseType.NO);
                 /* Remove completed game from history */
+                game_needs_saving = false;
                 autosave ();
             }
         }


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