mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-02 00:56:55 +08:00
GP-3105 - Fixed stack trace related to disposed dialog
This commit is contained in:
+2
-8
@@ -87,8 +87,6 @@ public class ProgramManagerPlugin extends Plugin implements ProgramManager {
|
||||
private RedoAction redoAction;
|
||||
private ProgramLocation currentLocation;
|
||||
|
||||
private OpenVersionedFileDialog<Program> openDialog;
|
||||
|
||||
public ProgramManagerPlugin(PluginTool tool) {
|
||||
super(tool);
|
||||
|
||||
@@ -297,9 +295,6 @@ public class ProgramManagerPlugin extends Plugin implements ProgramManager {
|
||||
public void dispose() {
|
||||
programMgr.dispose();
|
||||
tool.clearLastEvents();
|
||||
if (openDialog != null) {
|
||||
openDialog.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -610,8 +605,8 @@ public class ProgramManagerPlugin extends Plugin implements ProgramManager {
|
||||
|
||||
private void open() {
|
||||
|
||||
if (openDialog == null) {
|
||||
openDialog = new OpenVersionedFileDialog<>(tool, "Open Program", Program.class);
|
||||
OpenVersionedFileDialog<Program> openDialog =
|
||||
new OpenVersionedFileDialog<>(tool, "Open Program", Program.class);
|
||||
openDialog.setHelpLocation(new HelpLocation(HelpTopics.PROGRAM, "Open_File_Dialog"));
|
||||
|
||||
openDialog.addOkActionListener(e -> {
|
||||
@@ -625,7 +620,6 @@ public class ProgramManagerPlugin extends Plugin implements ProgramManager {
|
||||
doOpenProgram(domainFile, version, OPEN_CURRENT);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
tool.showDialog(openDialog);
|
||||
contextChanged();
|
||||
|
||||
Reference in New Issue
Block a user