[quadrapassel/gnome-3-20] Don't save last scores before exiting twice



commit 250aeca2614493aefbe024ea82e827d1e2dfc4fd
Author: Mario Wenzel <maweki gmail com>
Date:   Mon May 16 22:10:12 2016 +0200

    Don't save last scores before exiting twice
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766478

 src/quadrapassel.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/quadrapassel.vala b/src/quadrapassel.vala
index 22d1810..ff97a55 100644
--- a/src/quadrapassel.vala
+++ b/src/quadrapassel.vala
@@ -230,7 +230,7 @@ public class Quadrapassel : Gtk.Application
         settings.set_boolean ("window-is-maximized", is_maximized);
 
         /* Record the score if the game isn't over. */
-        if (game != null && game.score > 0)
+        if (game != null && !game.game_over && game.score > 0)
         {
             var date = new DateTime.now_local ();
             var entry = new HistoryEntry (date, game.score);


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