talons

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

commit 4a753d0496edc9fa25f7c8ec6f3f62627572b598
parent dfb47978a337d993daa41556b70f81a15c166e2e
Author: wwp <subscript@free.fr>
Date:   Tue, 31 Aug 2021 22:33:19 +0200

Fix wrong logic, (old) patch by Olivier Brunel.

Diffstat:
Msrc/summaryview.c | 13+++----------
1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/summaryview.c b/src/summaryview.c @@ -1647,16 +1647,9 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item, gboolean avoid summary_unlock(summaryview); - if (node) { - gint open_selected = -1; - if (!is_refresh) { - if (OPEN_SELECTED_ON_FOLDER_OPEN) - open_selected = 1; - else - open_selected = 0; - } - summary_select_node(summaryview, node, open_selected); - } + if (node) + summary_select_node(summaryview, node, + OPEN_SELECTED_ON_FOLDER_OPEN); summary_lock(summaryview); }