[gnome-chess/gnome-3-10] Don't delete all loaded PGNs



commit 304bc33e0161512bc4546eff3eae5cf48cdc5e37
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Oct 13 18:46:31 2013 -0500

    Don't delete all loaded PGNs
    
    That's a bad thing for a good chess program to do.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710049

 src/gnome-chess.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index a88d862..9a08e1b 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -350,8 +350,7 @@ public class Application : Gtk.Application
         /* Don't autosave if no moves (e.g. they have been undone) or only the computer has moved */
         if (!game_needs_saving)
         {
-            if (game_file != null)
-                FileUtils.remove (game_file.get_path ());
+            FileUtils.remove (autosave_filename);
             return;
         }
 


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