[Commits] [SCM] claws branch, master, updated. 3.12.0-20-gf0b7352

claws at claws-mail.org claws at claws-mail.org
Fri Jul 24 18:47:44 CEST 2015


The branch, master has been updated
       via  f0b7352b384ee88c1202378483ec213395ccf94b (commit)
      from  3a0460c255c4307ac52b6453d756bdf9cc277cda (commit)

Summary of changes:
 src/summaryview.c |    4 ++++
 1 file changed, 4 insertions(+)


- Log -----------------------------------------------------------------
commit f0b7352b384ee88c1202378483ec213395ccf94b
Author: Paul <paul at claws-mail.org>
Date:   Fri Jul 24 17:47:39 2015 +0100

    fix crasher when using descending sort and deleting a msg

diff --git a/src/summaryview.c b/src/summaryview.c
index c4be0d0..8222618 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -4431,6 +4431,8 @@ void summary_delete(SummaryView *summaryview)
 
 	if (summaryview->sort_type == SORT_ASCENDING)
 		node = summary_find_next_msg(summaryview, sel_last);
+	else
+		node = summary_find_prev_msg(summaryview, sel_last);
 	if (!node)
 		node = summary_find_prev_msg(summaryview, sel_last);
 
@@ -4591,6 +4593,8 @@ void summary_move_selected_to(SummaryView *summaryview, FolderItem *to_folder)
 		GtkCMCTreeNode *node;
 		if (summaryview->sort_type == SORT_ASCENDING)
 			node = summary_find_next_msg(summaryview, sel_last);
+		else
+			node = summary_find_prev_msg(summaryview, sel_last);
 		if (!node)
 			node = summary_find_prev_msg(summaryview, sel_last);
 		summary_select_node(summaryview, node, summaryview->display_msg, TRUE);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list