Skip to content

Commit

Permalink
Do not let files steal focus from commit list
Browse files Browse the repository at this point in the history
Merge pull request #406 from codeschrat/dont-let-changed-files-steal-focus
  • Loading branch information
Murmele authored Dec 29, 2022
2 parents 2bbb770 + ae87b45 commit 8580fd8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ui/DoubleTreeWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,10 +543,8 @@ void DoubleTreeWidget::filesSelected(const QModelIndexList &indexes) {
TreeView *treeview = static_cast<TreeView *>(obj);
if (treeview == stagedFiles) {
unstagedFiles->deselectAll();
stagedFiles->setFocus();
} else if (treeview == unstagedFiles) {
stagedFiles->deselectAll();
unstagedFiles->setFocus();
}
}
loadEditorContent(indexes);
Expand Down

0 comments on commit 8580fd8

Please sign in to comment.