commit 48d8a4066db10097dc5a39b8afcb6feb0daaa6f5
parent f19483226253e6d11474164d2f4264efb90f59fa
Author: Paul <paul@claws-mail.org>
Date: Mon, 12 Oct 2015 18:56:06 +0100
add (currently?) hidden pref for choosing to go to older/newer msg on delete
Diffstat:
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git 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
@@ -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
@@ -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);