aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMatt McCutchen <matt@mattmccutchen.net>2011-06-03 01:30:12 +0800
committerMilan Crha <mcrha@redhat.com>2011-06-03 01:30:12 +0800
commit1f13f312d2429cc6cf49bb532979c65bc87f97c3 (patch)
tree094d76ce8f83856319126e4bf28a4c96652af392 /modules/mail
parent171b6f61495d43e672077ac2f8d5478d18fb6f23 (diff)
downloadgsoc2013-evolution-1f13f312d2429cc6cf49bb532979c65bc87f97c3.tar
gsoc2013-evolution-1f13f312d2429cc6cf49bb532979c65bc87f97c3.tar.gz
gsoc2013-evolution-1f13f312d2429cc6cf49bb532979c65bc87f97c3.tar.bz2
gsoc2013-evolution-1f13f312d2429cc6cf49bb532979c65bc87f97c3.tar.lz
gsoc2013-evolution-1f13f312d2429cc6cf49bb532979c65bc87f97c3.tar.xz
gsoc2013-evolution-1f13f312d2429cc6cf49bb532979c65bc87f97c3.tar.zst
gsoc2013-evolution-1f13f312d2429cc6cf49bb532979c65bc87f97c3.zip
Bug #614274 - Labeling many messages is very slow
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-view-actions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index e396184bc0..53cd908734 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -626,6 +626,7 @@ action_mail_label_cb (GtkToggleAction *action,
folder = e_mail_reader_get_folder (reader);
uids = e_mail_reader_get_selected_uids (reader);
+ camel_folder_freeze (folder);
for (ii = 0; ii < uids->len; ii++) {
if (gtk_toggle_action_get_active (action))
camel_folder_set_message_user_flag (
@@ -637,6 +638,7 @@ action_mail_label_cb (GtkToggleAction *action,
folder, uids->pdata[ii], "label", NULL);
}
}
+ camel_folder_thaw (folder);
em_utils_uids_free (uids);
}