mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GT-2383 tree focus when clicking on already selected node.
This commit is contained in:
parent
06f8a90fc7
commit
8461e91758
1 changed files with 4 additions and 0 deletions
|
@ -1324,6 +1324,10 @@ public class GTree extends JPanel implements BusyListener {
|
|||
protected void setSelectedPathNow(TreePath path) {
|
||||
GTreeSelectionModel selectionModel = (GTreeSelectionModel) gTree.getSelectionModel();
|
||||
selectionModel.setSelectionPaths(new TreePath[] { path }, USER_GENERATED);
|
||||
|
||||
// If the user clicked on the same node as was already selected, no events are generated
|
||||
// and the tree might be left unfocused. Force the focus to the tree.
|
||||
gTree.requestFocus();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue