[gnome-chess] Game does not need saving immediately after it is saved



commit cad942dc008b56367535e265b019c64a1b46a027
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Sat Jun 22 17:21:06 2013 -0500

    Game does not need saving immediately after it is saved
    
    Moreover, we should wait until after the save is successful before
    making this determination.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702157

 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 1e2e3b7..0e607da 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1659,13 +1659,14 @@ public class Application : Gtk.Application
     {
         if (response_id == Gtk.ResponseType.OK)
         {
-            save_menu.sensitive = false;
             update_pgn_time_remaining ();
 
             try
             {
                 pgn_game.write (save_dialog.get_file ());
                 saved_filename = save_dialog.get_filename ();
+                save_menu.sensitive = false;
+                game_needs_saving = false;
             }
             catch (Error e)
             {


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