[evolution] Bug 628350 - Allow deletion of a deleted message to advance cursor
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 628350 - Allow deletion of a deleted message to advance cursor
- Date: Mon, 30 Aug 2010 19:15:00 +0000 (UTC)
commit 96414281ab7be1080b1db902d6b5a6d83b256cc2
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Aug 30 15:14:36 2010 -0400
Bug 628350 - Allow deletion of a deleted message to advance cursor
mail/e-mail-reader.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index f0c91d7..f628b65 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -2607,8 +2607,12 @@ mail_reader_update_actions (EMailReader *reader,
action = e_mail_reader_get_action (reader, action_name);
gtk_action_set_sensitive (action, sensitive);
+ /* If a single message is selected, let the user hit delete to
+ * advance the cursor even if the message is already deleted. */
action_name = "mail-delete";
- sensitive = selection_has_undeleted_messages;
+ sensitive =
+ single_message_selected ||
+ selection_has_undeleted_messages;
action = e_mail_reader_get_action (reader, action_name);
gtk_action_set_sensitive (action, sensitive);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]