From 1b07e47ee680f3b513f8e1a9484807a3e55f301e Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Wed, 4 Oct 2000 05:00:51 +0000 Subject: Added a comment to a piece of code that I was trying to "fix" just to find 2000-10-04 Miguel de Icaza * mail-callbacks.c (delete_msg): Added a comment to a piece of code that I was trying to "fix" just to find that the strange behaviour here that was about to be fixed, was actually a fix to the problem I was trying to fix. So put the original comments from Dan, and will hope that someone with more knowledge about this can figure why the delete key wont delete messages and select the next unread message. svn path=/trunk/; revision=5701 --- mail/mail-callbacks.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 6545db3b17..1cbc1bc5a7 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -629,6 +629,14 @@ delete_msg (GtkWidget *button, gpointer user_data) uids = g_ptr_array_new (); message_list_foreach (ml, enumerate_msg, uids); + + /* + * Toggling a flag is an "instantaneous" operation, so if + * we're only doing one, just do it and return, rather than + * queueing it for the other thread. This makes the "Delete" + * key work correctly (move to the next message) again. + * - Dan + */ if (uids->len == 1) { guint32 flags; char *uid = uids->pdata[0]; -- cgit v1.2.3