[Commits] [SCM] claws branch, master, updated. 3.17.3-18-g3982d3e

ticho at claws-mail.org ticho at claws-mail.org
Sun Dec 30 01:13:36 CET 2018


The branch, master has been updated
       via  3982d3e615ab83b8da70617df46be2cf52ed1cc5 (commit)
      from  9b9f3f130d908908d111dd168af91508420d957f (commit)

Summary of changes:
 src/summaryview.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 3982d3e615ab83b8da70617df46be2cf52ed1cc5
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Dec 30 01:12:27 2018 +0100

    Respect quicksearch focus when refreshing summaryview to show new messages
    
    Fixes bug #2131: Focus stealing after mail check

diff --git a/src/summaryview.c b/src/summaryview.c
index a4709c9..99b30c8 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -2349,7 +2349,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)

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list