diff --git a/src/lay/lay/layApplication.cc b/src/lay/lay/layApplication.cc index 9a9681786..b547762a9 100644 --- a/src/lay/lay/layApplication.cc +++ b/src/lay/lay/layApplication.cc @@ -93,10 +93,12 @@ static void ui_exception_handler_tl (const tl::Exception &ex, QWidget *parent) } const tl::ExitException *gsi_exit = dynamic_cast (&ex); + const tl::BreakException *gsi_break = dynamic_cast (&ex); const tl::ScriptError *gsi_excpt = dynamic_cast (&ex); - if (gsi_exit) { - // exit exceptions are not shown - they are issued when a script is aborted + if (gsi_exit || gsi_break) { + // exit and break exceptions are not shown - they are issued when a script is aborted or + // an operation is cancelled } else if (gsi_excpt) { // show and GSI errors in the context of the macro editor if that is open