aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2018-01-12 08:30:10 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2018-01-12 08:30:10 +0000
commit34b664d68ad69760e80e79b47e154e2309f0a20e (patch)
treef5036da0bdaaf600a0f3613d02975a658b8281e3
parent2d30aba920ec4489d399078aa5618dc82e92e248 (diff)
Fixed wrong reply target when sorted by the unread flag (#286).
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3600 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--src/summaryview.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7c2615cf..58c4840b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-12
+
+ * src/summaryview.c: summary_mark_displayed_read(): reset current
+ selection list when sorted by unread (fixes #286).
+
2017-12-14
* version 3.7.0beta1
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);