aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-ui.c
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2002-08-21 06:25:14 +0800
committerMike Kestner <mkestner@src.gnome.org>2002-08-21 06:25:14 +0800
commitd9b2f929a9b8a90120b970b011fe1be7fe3f8865 (patch)
tree9c3c5f83cea2bc953ef43fcfb148dfd2b8197ffc /mail/folder-browser-ui.c
parentccc74517d3c44fbf38941cd99889d361864c5212 (diff)
downloadgsoc2013-evolution-d9b2f929a9b8a90120b970b011fe1be7fe3f8865.tar.gz
gsoc2013-evolution-d9b2f929a9b8a90120b970b011fe1be7fe3f8865.tar.zst
gsoc2013-evolution-d9b2f929a9b8a90120b970b011fe1be7fe3f8865.zip
guard against the view_instance disappearing during earlier CORBA work.
2002-08-20 Mike Kestner <mkestner@ximian.com> * folder-browser-ui.c (folder_browser_ui_setup_view_menus): guard against the view_instance disappearing during earlier CORBA work. svn path=/trunk/; revision=17825
Diffstat (limited to 'mail/folder-browser-ui.c')
-rw-r--r--mail/folder-browser-ui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/folder-browser-ui.c b/mail/folder-browser-ui.c
index 346b0ec188..0135872d2d 100644
--- a/mail/folder-browser-ui.c
+++ b/mail/folder-browser-ui.c
@@ -381,6 +381,11 @@ folder_browser_ui_setup_view_menus (FolderBrowser *fb)
fb->view_menus = gal_view_menus_new (fb->view_instance);
gal_view_menus_apply (fb->view_menus, fb->uicomp, NULL);
+
+ /* Due to CORBA reentrancy, the view could be gone now. */
+ if (fb->view_instance == NULL)
+ return;
+
gtk_signal_connect (GTK_OBJECT (fb->view_instance), "display_view",
display_view, fb);
display_view (fb->view_instance, gal_view_instance_get_current_view (fb->view_instance), fb);