commit 393b3f9be35daa3332b915a11a20b61ef6b80e2e
parent 088ced3c4d1b710966d14fe9ac44ea16120adb9e
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Sun, 30 Dec 2018 01:12:27 +0100
Respect quicksearch focus when refreshing summaryview to show new messages
Fixes bug #2131: Focus stealing after mail check
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/summaryview.c b/src/summaryview.c
@@ -2347,7 +2347,11 @@ void summary_select_node(SummaryView *summaryview, GtkCMCTreeNode *node,
summary_lock(summaryview);
GTK_EVENTS_FLUSH();
summary_unlock(summaryview);
- gtk_widget_grab_focus(GTK_WIDGET(ctree));
+
+ /* If quicksearch has focus, let's keep it there. */
+ if (!quicksearch_has_focus(summaryview->quicksearch))
+ summary_grab_focus(summaryview);
+
gtkut_ctree_node_move_if_on_the_edge(ctree, node, -1);
if (display_msg && summaryview->displayed == node)