From ae87b45e1057c58dfa41a1879b36de1262965a79 Mon Sep 17 00:00:00 2001 From: jens <98707820+codeschrat@users.noreply.github.com> Date: Wed, 21 Dec 2022 17:30:34 +0100 Subject: [PATCH] Do not set focus on file tree view --- src/ui/DoubleTreeWidget.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ui/DoubleTreeWidget.cpp b/src/ui/DoubleTreeWidget.cpp index e932f2a52..edc0df583 100644 --- a/src/ui/DoubleTreeWidget.cpp +++ b/src/ui/DoubleTreeWidget.cpp @@ -538,10 +538,8 @@ void DoubleTreeWidget::filesSelected(const QModelIndexList &indexes) { TreeView *treeview = static_cast(obj); if (treeview == stagedFiles) { unstagedFiles->deselectAll(); - stagedFiles->setFocus(); } else if (treeview == unstagedFiles) { stagedFiles->deselectAll(); - unstagedFiles->setFocus(); } } loadEditorContent(indexes);