aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-08-01 16:56:38 +0800
committerJacob Leach <jleach@src.gnome.org>2001-08-01 16:56:38 +0800
commitca7c6e2fc0a252a41df1dcd658f632bda4b934c0 (patch)
tree7127147340b50917826390bba72f34c92fad81ff /mail/mail-callbacks.c
parent01d76f259086c09eadee101f6c28bcb06a9e11b0 (diff)
downloadgsoc2013-evolution-ca7c6e2fc0a252a41df1dcd658f632bda4b934c0.tar
gsoc2013-evolution-ca7c6e2fc0a252a41df1dcd658f632bda4b934c0.tar.gz
gsoc2013-evolution-ca7c6e2fc0a252a41df1dcd658f632bda4b934c0.tar.bz2
gsoc2013-evolution-ca7c6e2fc0a252a41df1dcd658f632bda4b934c0.tar.lz
gsoc2013-evolution-ca7c6e2fc0a252a41df1dcd658f632bda4b934c0.tar.xz
gsoc2013-evolution-ca7c6e2fc0a252a41df1dcd658f632bda4b934c0.tar.zst
gsoc2013-evolution-ca7c6e2fc0a252a41df1dcd658f632bda4b934c0.zip
Don't move cursors around when deleting last message and Hide Deleted
2001-08-01 Jason Leach <jleach@ximian.com> * 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
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);