aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index b70e12185e..ebe0907719 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1575,10 +1575,12 @@ delete_msg (GtkWidget *button, gpointer user_data)
row = e_tree_row_of_node (fb->message_list->tree,
e_tree_get_cursor (fb->message_list->tree));
- /* If this is the last message, select the previous */
- if (row+1 == e_tree_row_count (fb->message_list->tree))
+ /* If this is the last message and deleted messages
+ are hidden, select the previous */
+ if ((row+1 == e_tree_row_count (fb->message_list->tree))
+ && mail_config_get_hide_deleted ())
message_list_select (fb->message_list, row, MESSAGE_LIST_SELECT_PREVIOUS,
- 0, 0);
+ 0, CAMEL_MESSAGE_DELETED);
else
message_list_select (fb->message_list, row, MESSAGE_LIST_SELECT_NEXT,
0, 0);