[Commits] [SCM] claws branch, master, updated. 3.12.0-16-g0cbcaf7

claws at claws-mail.org claws at claws-mail.org
Wed Jul 22 10:50:25 CEST 2015


The branch, master has been updated
       via  0cbcaf7e74815e0a568b5f710aceeda2d92786ff (commit)
      from  8be31955028980da209a38dea361c57d43fba96b (commit)

Summary of changes:
 src/summaryview.c |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 0cbcaf7e74815e0a568b5f710aceeda2d92786ff
Author: Paul <paul at claws-mail.org>
Date:   Wed Jul 22 09:50:18 2015 +0100

    after deleting/trashing msg, select next msg depending on sort order

diff --git a/src/summaryview.c b/src/summaryview.c
index 1f6308c..aee456d 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -4429,7 +4429,8 @@ void summary_delete(SummaryView *summaryview)
 	folder_item_set_batch(summaryview->folder_item, FALSE);
 	END_LONG_OPERATION(summaryview);
 
-	node = summary_find_next_msg(summaryview, sel_last);
+	if (summaryview->sort_type == SORT_ASCENDING)
+		node = summary_find_next_msg(summaryview, sel_last);
 	if (!node)
 		node = summary_find_prev_msg(summaryview, sel_last);
 
@@ -4587,7 +4588,9 @@ void summary_move_selected_to(SummaryView *summaryview, FolderItem *to_folder)
 	if (prefs_common.immediate_exec) {
 		summary_execute(summaryview);
 	} else {
-		GtkCMCTreeNode *node = summary_find_next_msg(summaryview, sel_last);
+		GtkCMCTreeNode *node;
+		if (summaryview->sort_type == SORT_ASCENDING)
+			node = summary_find_next_msg(summaryview, sel_last);
 		if (!node)
 			node = summary_find_prev_msg(summaryview, sel_last);
 		summary_select_node(summaryview, node, summaryview->display_msg, TRUE);
@@ -4948,7 +4951,8 @@ gboolean summary_execute(SummaryView *summaryview)
 		if (!new_selected &&
 		    gtkut_ctree_node_is_selected(ctree, node)) {
 			summary_unselect_all(summaryview);
-			new_selected = summary_find_next_msg(summaryview, node);
+			if (summaryview->sort_type == SORT_ASCENDING)
+				new_selected = summary_find_next_msg(summaryview, node);
 			if (!new_selected)
 				new_selected = summary_find_prev_msg
 					(summaryview, node);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list