mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
commit
5dcd35ca6f
2 changed files with 6 additions and 1 deletions
|
@ -207,6 +207,7 @@ public class FlatProgramAPI {
|
||||||
|
|
||||||
AutoAnalysisManager mgr = AutoAnalysisManager.getAnalysisManager(program);
|
AutoAnalysisManager mgr = AutoAnalysisManager.getAnalysisManager(program);
|
||||||
|
|
||||||
|
mgr.initializeOptions();
|
||||||
mgr.reAnalyzeAll(null);
|
mgr.reAnalyzeAll(null);
|
||||||
|
|
||||||
analyzeChanges(program);
|
analyzeChanges(program);
|
||||||
|
|
|
@ -212,8 +212,12 @@ public class GlobalMenuAndToolBarManager implements DockingWindowListener {
|
||||||
KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
|
KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
|
||||||
Window w = kfm.getFocusedWindow();
|
Window w = kfm.getFocusedWindow();
|
||||||
if (w instanceof DockingDialog dialog) {
|
if (w instanceof DockingDialog dialog) {
|
||||||
|
// the provider can be null when the dialog has been closed, but the Java focus transfer
|
||||||
|
// has not yet completed
|
||||||
DialogComponentProvider provider = dialog.getDialogComponent();
|
DialogComponentProvider provider = dialog.getDialogComponent();
|
||||||
return provider.getActionContext(null);
|
if (provider != null) {
|
||||||
|
return provider.getActionContext(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return getComponentProviderContext(focusedWindowNode);
|
return getComponentProviderContext(focusedWindowNode);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue