mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-07 09:11:15 -09:00
GP-38 Corrected ContextAction failure to display dialog (Closes #2860)
This commit is contained in:
@@ -302,15 +302,12 @@ public class DisassemblerPlugin extends Plugin {
|
||||
}
|
||||
|
||||
public void setDefaultContext(ListingActionContext context) {
|
||||
|
||||
Program contextProgram = context.getProgram();
|
||||
Register baseContextReg = contextProgram.getLanguage().getContextBaseRegister();
|
||||
if (baseContextReg != null && baseContextReg.hasChildren()) {
|
||||
return;
|
||||
tool.showDialog(new ProcessorStateDialog(contextProgram.getProgramContext()),
|
||||
context.getComponentProvider());
|
||||
}
|
||||
|
||||
tool.showDialog(new ProcessorStateDialog(contextProgram.getProgramContext()),
|
||||
context.getComponentProvider());
|
||||
}
|
||||
|
||||
public boolean hasContextRegisters(Program currentProgram) {
|
||||
|
||||
Reference in New Issue
Block a user