From cd1b05ca912641d3f4bbcd0cb0f5de34b8650a86 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 13 May 2003 16:12:10 +0000 Subject: Removed. (make_factory): No need to set up the SIGSEGV redirect handler * component-factory.c (segv_redirect): Removed. (make_factory): No need to set up the SIGSEGV redirect handler here, since it's already done in the shell now, and it's in-proc. * folder-browser-ui.c (folder_browser_ui_rm_all): Only do the bonobo_ui_component() stuff if the component does have a container. svn path=/trunk/; revision=21156 --- mail/folder-browser-ui.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mail/folder-browser-ui.c') diff --git a/mail/folder-browser-ui.c b/mail/folder-browser-ui.c index 18aecd234f..3f570b963d 100644 --- a/mail/folder-browser-ui.c +++ b/mail/folder-browser-ui.c @@ -649,10 +649,12 @@ void folder_browser_ui_rm_all (FolderBrowser *fb) { BonoboUIComponent *uic = fb->uicomp; - - bonobo_ui_component_rm (uic, "/", NULL); - bonobo_ui_component_unset_container (uic, NULL); - + + if (bonobo_ui_component_get_container (uic) != NULL) { + bonobo_ui_component_rm (uic, "/", NULL); + bonobo_ui_component_unset_container (uic, NULL); + } + if (fb->sensitise_state) { g_hash_table_destroy (fb->sensitise_state); fb->sensitise_state = NULL; -- cgit v1.2.3