[ekiga] Made the code more uniform in the code hiding windows on quit



commit eecfb2481470057038ba6450c05f15571c8994d5
Author: Julien Puydt <jpuydt newton localdomain>
Date:   Wed Oct 5 13:24:08 2011 +0200

    Made the code more uniform in the code hiding windows on quit

 src/gui/callbacks.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/callbacks.cpp b/src/gui/callbacks.cpp
index c904a36..13cb246 100644
--- a/src/gui/callbacks.cpp
+++ b/src/gui/callbacks.cpp
@@ -227,12 +227,14 @@ quit_callback (G_GNUC_UNUSED GtkWidget *widget,
   prefs_window = GnomeMeeting::Process ()->GetPrefsWindow ();
   accounts_window = GnomeMeeting::Process ()->GetAccountsWindow ();
 
-  gtk_widget_hide (main_window);
+  if (main_window)
+    gtk_widget_hide (main_window);
   if (assistant_window)
     gm_window_hide (assistant_window);
   if (prefs_window)
     gm_window_hide (prefs_window);
-  gm_window_hide (accounts_window);
+  if (accounts_window)
+    gm_window_hide (accounts_window);
 
   while (gtk_events_pending ())
     gtk_main_iteration ();



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