[evolution] Bug 789526 - Incorrect message selected after Delete in real Trash folder



commit 0ff9413ec9fc55ee8d72c8222b965d2c4c3d379f
Author: Milan Crha <mcrha redhat com>
Date:   Thu Nov 16 15:39:29 2017 +0100

    Bug 789526 - Incorrect message selected after Delete in real Trash folder

 src/mail/message-list.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/mail/message-list.c b/src/mail/message-list.c
index 2c2ffab..95bb875 100644
--- a/src/mail/message-list.c
+++ b/src/mail/message-list.c
@@ -6249,10 +6249,12 @@ message_list_regen_done_cb (GObject *source_object,
 
                e_table_item_thaw (table_item);
 
-               if (!saveuid && message_list->cursor_uid && g_hash_table_lookup (message_list->uid_nodemap, 
message_list->cursor_uid)) {
+               if ((!saveuid || !g_hash_table_lookup (message_list->uid_nodemap, saveuid)) &&
+                   message_list->cursor_uid && g_hash_table_lookup (message_list->uid_nodemap, 
message_list->cursor_uid)) {
                        /* this makes sure a visible node is selected, like when
                         * collapsing all nodes and a children had been selected
-                       */
+                        */
+                       g_free (saveuid);
                        saveuid = g_strdup (message_list->cursor_uid);
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]