aboutsummaryrefslogtreecommitdiff
path: root/src/summaryview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/summaryview.c')
-rw-r--r--src/summaryview.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/summaryview.c b/src/summaryview.c
index 628eb109..d5a04b70 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -5842,6 +5842,10 @@ void summary_mark_displayed_read(SummaryView *summaryview, GtkTreeIter *iter)
(msginfo, MSG_NEW | MSG_UNREAD);
summary_set_row(summaryview, iter, msginfo);
summary_status_show(summaryview);
+
+ /* sort order can be changed here */
+ if (summaryview->folder_item->sort_key == SORT_BY_UNREAD)
+ summary_selection_list_free(summaryview);
}
summary_unlock(summaryview);