[gnome-chess/gnome-3-8] Don't start new game if dialog is destroyed



commit 8adeaecfb4ae0467e9238d0fe1e50883748b04f9
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Tue Jul 9 08:56:09 2013 -0500

    Don't start new game if dialog is destroyed
    
    The user expects this to function as "cancel"
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703857

 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 608034b..badcb91 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1021,7 +1021,7 @@ public class Application : Gtk.Application
             dialog.add_button (_("_Save game for later"), Gtk.ResponseType.YES);
             var result = dialog.run ();
             dialog.destroy ();
-            if (result == Gtk.ResponseType.CANCEL)
+            if (result == Gtk.ResponseType.CANCEL || result == Gtk.ResponseType.DELETE_EVENT)
                 return;
 
             if (result == Gtk.ResponseType.NO)


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