diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-folder-cache.c | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index e68eb3472d..a816a8843a 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-07-16 Peter Williams <peterw@ximian.com> + + * mail-folder-cache.c (mail_folder_cache_set_folder_browser): DUH. + No need to update every folder if we set the folder browser to + NULL. + 2001-07-15 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Call diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c index 0558c43822..8e66866e7a 100644 --- a/mail/mail-folder-cache.c +++ b/mail/mail-folder-cache.c @@ -785,6 +785,11 @@ mail_folder_cache_set_folder_browser (FolderBrowser *fb) if (fb) { d(g_message("Reffing new browser %p", fb)); gtk_object_ref (GTK_OBJECT (fb)); + + LOCK_FOLDERS (); + d(g_message("Checking folders for this fb")); + g_hash_table_foreach (folders, check_for_fb_match, fb); + UNLOCK_FOLDERS (); } else if (shell_view != CORBA_OBJECT_NIL) { CORBA_Environment ev; @@ -797,11 +802,6 @@ mail_folder_cache_set_folder_browser (FolderBrowser *fb) bonobo_exception_get_text (&ev)); CORBA_exception_free (&ev); } - - LOCK_FOLDERS (); - d(g_message("Checking folders for this fb")); - g_hash_table_foreach (folders, check_for_fb_match, fb); - UNLOCK_FOLDERS (); } #if d(!)0 |