aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r--mail/folder-browser-factory.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index a7c45d822d..e0f808f149 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -92,8 +92,7 @@ control_activate (BonoboControl *control,
folder_browser_ui_add_list (fb);
folder_browser_ui_add_message (fb);
- mail_folder_cache_set_shell_view (fb_get_svi (control));
- mail_folder_cache_set_folder_browser (fb);
+ folder_browser_set_shell_view(fb, fb_get_svi (control));
if (fb->folder)
mail_refresh_folder (fb->folder, NULL, NULL);
@@ -104,8 +103,6 @@ control_deactivate (BonoboControl *control,
BonoboUIComponent *uic,
FolderBrowser *fb)
{
- mail_folder_cache_set_folder_browser (NULL);
-
folder_browser_ui_rm_list (fb);
folder_browser_ui_rm_all (fb);
@@ -113,6 +110,7 @@ control_deactivate (BonoboControl *control,
mail_sync_folder (fb->folder, NULL, NULL);
folder_browser_set_ui_component (fb, NULL);
+ folder_browser_set_shell_view (fb, CORBA_OBJECT_NIL);
}
static void