[Commits] [SCM] claws branch, master, updated. 3.13.0-5-g48d8a40

claws at claws-mail.org claws at claws-mail.org
Mon Oct 12 19:56:13 CEST 2015


The branch, master has been updated
       via  48d8a4066db10097dc5a39b8afcb6feb0daaa6f5 (commit)
      from  f19483226253e6d11474164d2f4264efb90f59fa (commit)

Summary of changes:
 src/prefs_common.c |    5 ++++-
 src/prefs_common.h |    1 +
 src/summaryview.c  |    4 ++--
 3 files changed, 7 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 48d8a4066db10097dc5a39b8afcb6feb0daaa6f5
Author: Paul <paul at claws-mail.org>
Date:   Mon Oct 12 18:56:06 2015 +0100

    add (currently?) hidden pref for choosing to go to older/newer msg on delete

diff --git a/src/prefs_common.c b/src/prefs_common.c
index 59f3a1e..559bf51 100644
--- a/src/prefs_common.c
+++ b/src/prefs_common.c
@@ -450,7 +450,10 @@ static PrefParam param[] = {
 	{"msgview_date_format", "FALSE", &prefs_common.msgview_date_format, P_BOOL,
 	 NULL, NULL, NULL},
 
-	{"bold_unread", "TRUE", &prefs_common.bold_unread, P_BOOL,
+	{"next_on_delete", "FALSE", &prefs_common.next_on_delete, P_BOOL,
+	 NULL, NULL, NULL},
+
+	 {"bold_unread", "TRUE", &prefs_common.bold_unread, P_BOOL,
 	 NULL, NULL, NULL},
 
 	{"enable_thread", "TRUE", &prefs_common.enable_thread, P_BOOL,
diff --git a/src/prefs_common.h b/src/prefs_common.h
index 2daf079..6c98ae1 100644
--- a/src/prefs_common.h
+++ b/src/prefs_common.h
@@ -231,6 +231,7 @@ struct _PrefsCommon
 	gint stripes_color_offset;
 	gboolean enable_hscrollbar;
 	gboolean bold_unread;
+	gboolean next_on_delete;
 	gboolean enable_thread;
 	gboolean thread_by_subject;
 	gint thread_by_subject_max_age; /*!< Max. age of a thread which was threaded
diff --git a/src/summaryview.c b/src/summaryview.c
index 4425a42..4717efb 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -4431,11 +4431,11 @@ void summary_delete(SummaryView *summaryview)
 
 	if (summaryview->sort_type == SORT_ASCENDING) {
 		node = summary_find_next_msg(summaryview, sel_last);
-		if (!node)
+		if (!node || prefs_common.next_on_delete == FALSE)
 			node = summary_find_prev_msg(summaryview, sel_last);
 	} else {
 		node = summary_find_prev_msg(summaryview, sel_last);
-		if (!node)
+		if (!node || prefs_common.next_on_delete == FALSE)
 			node = summary_find_next_msg(summaryview, sel_last);
 	}
 	summary_select_node(summaryview, node, prefs_common.always_show_msg, TRUE);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list