[gnome-chess/chess-telepathy-networking-support-664946-rebase: 40/64] [glchess] Quit game on closing launcher when game-window is hidden



commit a6470e48404529b5dd2db898654ecfff665aeae0
Author: Chandni Verma <chandniverma2112 gmail com>
Date:   Sat Sep 8 03:11:34 2012 +0530

    [glchess] Quit game on closing launcher when game-window is hidden

 src/gnome-chess-application.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-chess-application.vala b/src/gnome-chess-application.vala
index a6b7e04..fb9541e 100644
--- a/src/gnome-chess-application.vala
+++ b/src/gnome-chess-application.vala
@@ -579,7 +579,7 @@ public class Application : Gtk.Application
     {
         launcher = null;
 
-        if (window == null)
+        if (window == null || !(window as Gtk.Widget).get_visible ())
           quit_game ();
     }
 



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