aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2006-05-30 15:01:07 +0800
committerLi Yuan <liyuan@src.gnome.org>2006-05-30 15:01:07 +0800
commit1f9500479383fcd608cc7058a3cf5941c30ce35a (patch)
tree8fa48a092d53123496aeb48a6af087b949ea4d05 /mail
parentf45a960006121e20158cbd6de5414a2192fc0f46 (diff)
downloadgsoc2013-evolution-1f9500479383fcd608cc7058a3cf5941c30ce35a.tar
gsoc2013-evolution-1f9500479383fcd608cc7058a3cf5941c30ce35a.tar.gz
gsoc2013-evolution-1f9500479383fcd608cc7058a3cf5941c30ce35a.tar.bz2
gsoc2013-evolution-1f9500479383fcd608cc7058a3cf5941c30ce35a.tar.lz
gsoc2013-evolution-1f9500479383fcd608cc7058a3cf5941c30ce35a.tar.xz
gsoc2013-evolution-1f9500479383fcd608cc7058a3cf5941c30ce35a.tar.zst
gsoc2013-evolution-1f9500479383fcd608cc7058a3cf5941c30ce35a.zip
Fix for #341381. We should lock e-tree-memory when we change it.
2006-05-30 Li Yuan <li.yuan@sun.com> Fix for #341381. * message-list.c: (message_list_set_folder): We should lock e-tree-memory when we change it. svn path=/trunk/; revision=32054
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/message-list.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index b781937a0d..4db84b06ba 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2006-05-30 Li Yuan <li.yuan@sun.com>
+
+ Fix for #341381.
+ * message-list.c: (message_list_set_folder):
+ We should lock e-tree-memory when we change it.
+
2006-05-30 Srinivasa Ragavan <sragavan@novell.com>
** Fixes bug #332936
diff --git a/mail/message-list.c b/mail/message-list.c
index cef1a77e80..999fef410c 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2827,6 +2827,7 @@ folder_changed (CamelObject *o, gpointer event_data, gpointer user_data)
void
message_list_set_folder (MessageList *message_list, CamelFolder *folder, const char *uri, gboolean outgoing)
{
+ ETreeModel *etm = message_list->model;
gboolean hide_deleted;
GConfClient *gconf;
CamelException ex;
@@ -2854,7 +2855,9 @@ message_list_set_folder (MessageList *message_list, CamelFolder *folder, const c
save_hide_state (message_list);
}
+ e_tree_memory_freeze(E_TREE_MEMORY(etm));
clear_tree (message_list);
+ e_tree_memory_thaw(E_TREE_MEMORY(etm));
if (message_list->folder) {
camel_object_unhook_event((CamelObject *)message_list->folder, "folder_changed",