From ca7c6e2fc0a252a41df1dcd658f632bda4b934c0 Mon Sep 17 00:00:00 2001 From: Jason Leach Date: Wed, 1 Aug 2001 08:56:38 +0000 Subject: Don't move cursors around when deleting last message and Hide Deleted 2001-08-01 Jason Leach * mail-callbacks.c (delete_msg): Don't move cursors around when deleting last message and Hide Deleted Messages isn't enabled. Bug #5928. svn path=/trunk/; revision=11543 --- mail/ChangeLog | 7 +++++++ mail/mail-callbacks.c | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index cf3bef97d4..fa12d5dfe7 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,4 +1,11 @@ +2001-08-01 Jason Leach + + * mail-callbacks.c (delete_msg): Don't move cursors around when + deleting last message and Hide Deleted Messages isn't enabled. + Bug #5928. + 2001-07-31 Anna Marie Dirks + * mail-mt.c (do_get_pass): Changed the title of this dialog to "Enter Password". 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); -- cgit