diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java b/Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java index 80973df175..baa9b4f23f 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java @@ -2818,6 +2818,11 @@ public abstract class GhidraScript extends FlatProgramAPI { Runnable r = () -> dtd.showComponent(); SystemUtilities.runSwingNow(r); + + if (dtd.wasCancelled()) { + throw new CancelledException(); + } + return ref.get(); });