when changing sort_key by clicking column header, preserve sort_type
authorPaul <paul@claws-mail.org>
Sun, 10 Jun 2018 10:23:51 +0000 (11:23 +0100)
committerPaul <paul@claws-mail.org>
Sun, 10 Jun 2018 10:23:51 +0000 (11:23 +0100)
src/summaryview.c

index f4298a9..9bf4420 100644 (file)
@@ -7291,7 +7291,7 @@ static void summary_sort_by_column_click(SummaryView *summaryview,
                             summaryview->sort_type == SORT_ASCENDING
                             ? SORT_DESCENDING : SORT_ASCENDING);
        else
-               summary_sort(summaryview, sort_key, SORT_ASCENDING);
+               summary_sort(summaryview, sort_key, summaryview->sort_type);
 
        node = GTK_CMCTREE_NODE(GTK_CMCLIST(summaryview->ctree)->row_list);