[Commits] [SCM] claws branch, master, updated. 3.15.0-8-g95ca860
claws at claws-mail.org
claws at claws-mail.org
Thu Mar 30 09:07:33 CEST 2017
The branch, master has been updated
via 95ca86061e39f797513e02c2505165d1ef257cef (commit)
from 7cdd09339e2d355d5f67ec26de1b4a2a7331ddfb (commit)
Summary of changes:
src/summaryview.c | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 95ca86061e39f797513e02c2505165d1ef257cef
Author: Paul <paul at claws-mail.org>
Date: Thu Mar 30 08:07:28 2017 +0100
default selection on entering a folder: make first new|unread|marked message sort-order aware
diff --git a/src/summaryview.c b/src/summaryview.c
index 47e1214..c60e646 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -1518,15 +1518,27 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
switch(act) {
case ACTION_MARKED:
- node = summary_find_next_flagged_msg(summaryview, NULL,
+ if (summaryview->sort_type == SORT_ASCENDING)
+ node = summary_find_next_flagged_msg(summaryview, NULL,
+ MSG_MARKED, FALSE);
+ else
+ node = summary_find_prev_flagged_msg(summaryview, NULL,
MSG_MARKED, FALSE);
break;
case ACTION_NEW:
- node = summary_find_next_flagged_msg(summaryview, NULL,
+ if (summaryview->sort_type == SORT_ASCENDING)
+ node = summary_find_next_flagged_msg(summaryview, NULL,
+ MSG_NEW, FALSE);
+ else
+ node = summary_find_prev_flagged_msg(summaryview, NULL,
MSG_NEW, FALSE);
break;
case ACTION_UNREAD:
- node = summary_find_next_flagged_msg(summaryview, NULL,
+ if (summaryview->sort_type == SORT_ASCENDING)
+ node = summary_find_next_flagged_msg(summaryview, NULL,
+ MSG_UNREAD, FALSE);
+ else
+ node = summary_find_prev_flagged_msg(summaryview, NULL,
MSG_UNREAD, FALSE);
break;
case ACTION_LAST_OPENED:
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list