talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit edc59d5b4bcf488bbd07eb34a6ef7ec1b9cc817f
parent 76b8816837325cf3689ef6d37d3e9d45980a91c8
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Fri, 24 Mar 2017 14:04:13 +0100

Make summary_show() open-when-selected behavior more consistent.

Fall back to "on folder open" setting when deciding whether
or not to also open the selected message.

Diffstat:
Msrc/summaryview.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/summaryview.c b/src/summaryview.c @@ -1464,7 +1464,8 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item) summary_select_by_msgnum(summaryview, selected_msgnum, OPEN_SELECTED_ON_SEARCH_RESULTS); else - summary_select_by_msgnum(summaryview, selected_msgnum, FALSE); + summary_select_by_msgnum(summaryview, selected_msgnum, + OPEN_SELECTED_ON_FOLDER_OPEN); summary_lock(summaryview); if (!summaryview->selected) { @@ -1483,7 +1484,8 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item) summary_select_node(summaryview, node, OPEN_SELECTED_ON_SEARCH_RESULTS); else - summary_select_node(summaryview, node, FALSE); + summary_select_node(summaryview, node, + OPEN_SELECTED_ON_FOLDER_OPEN); summary_lock(summaryview); }