GT-2877 fix file chooser to not put bogus file in model after failure.

If failed to create new folder due to filesystem permissions or
whatever, don't put a bogus entry in the file list model.
This commit is contained in:
dev747368
2019-05-16 17:09:38 -04:00
parent 7bece24cae
commit 90b57163fc

View File

@@ -1282,6 +1282,7 @@ public class GhidraFileChooser extends DialogComponentProvider
if (!created) {
Msg.showError(this, rootPanel, "Create Folder Failed",
"Unable to create new folder in " + currentDirectory());
return;
}
GhidraFile folder =