mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
fixed unit tests
This commit is contained in:
parent
3e35b4d4a7
commit
70605745c0
1 changed files with 4 additions and 1 deletions
|
@ -441,12 +441,15 @@ public class DockableComponent extends JPanel implements ContainerListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
// we aren't focusable, so pass focus to a valid child component
|
|
||||||
public void requestFocus() {
|
public void requestFocus() {
|
||||||
if (lastFocusedComponent != null && lastFocusedComponent.isShowing()) {
|
if (lastFocusedComponent != null && lastFocusedComponent.isShowing()) {
|
||||||
lastFocusedComponent.requestFocus();
|
lastFocusedComponent.requestFocus();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (placeholder == null) {
|
||||||
|
return; // this implies we have been disposed
|
||||||
|
}
|
||||||
placeholder.getProvider().requestFocus();
|
placeholder.getProvider().requestFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue