From adbaeb58882b92004e6301575463f56466f20310 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Thu, 29 Jan 2009 15:32:22 +0000 Subject: ** Fix for bug #562449 2009-01-29 Srinivasa Ragavan ** Fix for bug #562449 * em-folder-view.c: (em_folder_view_mark_selected), (emfv_delete_msg_response): Don't emit for vfolders. svn path=/trunk/; revision=37170 --- mail/ChangeLog | 7 +++++++ mail/em-folder-view.c | 12 ++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 14f658f48c..e7c901a940 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2009-01-29 Srinivasa Ragavan + + ** Fix for bug #562449 + + * em-folder-view.c: (em_folder_view_mark_selected), + (emfv_delete_msg_response): Don't emit for vfolders. + 2009-01-29 Srinivasa Ragavan ** Fix for bug #567654 diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index c9b05344fc..0936a5c8d6 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -475,13 +475,15 @@ em_folder_view_mark_selected(EMFolderView *emfv, guint32 mask, guint32 set) return 0; uids = message_list_get_selected(emfv->list); - camel_folder_freeze(emfv->folder); + if (!CAMEL_IS_VEE_FOLDER(emfv->folder)) + camel_folder_freeze(emfv->folder); for (i=0; ilen; i++) camel_folder_set_message_flags(emfv->folder, uids->pdata[i], mask, set); message_list_free_uids(emfv->list, uids); - camel_folder_thaw(emfv->folder); + if (!CAMEL_IS_VEE_FOLDER(emfv->folder)) + camel_folder_thaw(emfv->folder); return i; } @@ -1076,7 +1078,8 @@ emfv_delete_msg_response (GtkWidget *dialog, int response, gpointer data) } uids = message_list_get_selected(emfv->list); - camel_folder_freeze(emfv->folder); + if (!CAMEL_IS_VEE_FOLDER(emfv->folder)) + camel_folder_freeze(emfv->folder); for (count=0; count < uids->len; count++) { if (camel_folder_get_message_flags (emfv->folder, uids->pdata[count]) & CAMEL_MESSAGE_USER_NOT_DELETABLE) { @@ -1099,7 +1102,8 @@ emfv_delete_msg_response (GtkWidget *dialog, int response, gpointer data) } message_list_free_uids(emfv->list, uids); - camel_folder_thaw(emfv->folder); + if (!CAMEL_IS_VEE_FOLDER(emfv->folder)) + camel_folder_thaw(emfv->folder); emfv_select_next_message (emfv, count, FALSE); } -- cgit