[evolution/webkit] Bug #614274 - Labeling many messages is very slow
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit] Bug #614274 - Labeling many messages is very slow
- Date: Mon, 11 Jul 2011 14:52:49 +0000 (UTC)
commit 33134d2d8a968fffa2e671495a748e29d61897d0
Author: Matt McCutchen <matt mattmccutchen net>
Date: Thu Jun 2 19:30:12 2011 +0200
Bug #614274 - Labeling many messages is very slow
modules/mail/e-mail-shell-view-actions.c | 2 ++
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 e396184..53cd908 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]