aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-browser.c')
-rw-r--r--mail/em-folder-browser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index c0b9d92529..582546facb 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -940,6 +940,9 @@ emfb_set_folder(EMFolderView *emfv, CamelFolder *folder, const char *uri)
char *sstate;
int state;
GConfClient *gconf = mail_config_get_gconf_client();
+
+ camel_object_ref(folder);
+ mail_refresh_folder(folder, NULL, NULL);
emfb->priv->folder_changed_id = camel_object_hook_event(folder, "folder_changed",
(CamelObjectEventHookFunc)emfb_folder_changed, emfb);