1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 362105: Cancelling a launch during the prompt for the corefile gives an error

This commit is contained in:
Marc Khouzam 2011-10-26 15:24:49 -04:00
parent 2b1951b4cd
commit e4aed35b52

View file

@ -414,7 +414,17 @@ public class FinalLaunchSequence extends ReflectionSequence {
// Even if binary is null, we must call this to do all the other steps
// necessary to create a process. It is possible that the binary is not needed
fProcService.debugNewProcess(fCommandControl.getContext(), binary, fAttributes,
new DataRequestMonitor<IDMContext>(getExecutor(), rm));
new DataRequestMonitor<IDMContext>(getExecutor(), rm) {
@Override
protected void handleCancel() {
// If this step is cancelled, cancel the current sequence.
// This is to allow the user to press the cancel button
// when prompted for a post-mortem file.
// Bug 362105
rm.cancel();
rm.done();
}
});
} else {
rm.done();
}