Make summary_show() open-when-selected behavior more consistent.
authorAndrej Kacian <ticho@claws-mail.org>
Fri, 24 Mar 2017 13:04:13 +0000 (14:04 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Fri, 24 Mar 2017 13:04:13 +0000 (14:04 +0100)
Fall back to "on folder open" setting when deciding whether
or not to also open the selected message.

src/summaryview.c

index 2bfb01d..47e1214 100644 (file)
@@ -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);
                        }