beter fix for bug 2131, 3982d3e615ab83b8da70617df46be2cf52ed1cc5
authorPaul <paul@claws-mail.org>
Thu, 3 Oct 2019 09:30:04 +0000 (10:30 +0100)
committerPaul <paul@claws-mail.org>
Thu, 3 Oct 2019 09:30:04 +0000 (10:30 +0100)
Maintain the previous behaviour of focus switching to the summaryview
when a quicksearch has been executed

src/summaryview.c

index 1036bfe..fd38e75 100644 (file)
@@ -2338,7 +2338,8 @@ void summary_select_node(SummaryView *summaryview, GtkCMCTreeNode *node,
                summary_unlock(summaryview);
 
                /* If quicksearch has focus, let's keep it there. */
-               if (!quicksearch_has_focus(summaryview->quicksearch))
+               if (!quicksearch_is_in_typing(summaryview->quicksearch) &&
+                   quicksearch_is_running(summaryview->quicksearch))
                        summary_grab_focus(summaryview);
 
                gtkut_ctree_node_move_if_on_the_edge(ctree, node, -1);