From 0a453b069c58f8dbf382adfa14ae7f97caab0966 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Fri, 28 Jun 2024 15:45:25 +0200 Subject: [PATCH] Bugfix: when debugging a modal dialog event or callback, 'run'/'stop' and 'step' was not working --- src/lay/lay/layMacroEditorDialog.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lay/lay/layMacroEditorDialog.cc b/src/lay/lay/layMacroEditorDialog.cc index 25a90944a..c76a8200a 100644 --- a/src/lay/lay/layMacroEditorDialog.cc +++ b/src/lay/lay/layMacroEditorDialog.cc @@ -3694,7 +3694,7 @@ MacroEditorDialog::stop_button_clicked () { if (QApplication::activeModalWidget () == this) { // close this window if it was shown in modal mode - accept (); + QDialog::accept (); } m_in_exec = false; @@ -3760,12 +3760,9 @@ MacroEditorDialog::run (int stop_stack_depth, lym::Macro *macro) if (QApplication::activeModalWidget () == this) { // close this window if it was shown in modal mode - accept (); + QDialog::accept (); } - // in a breakpoint - m_in_breakpoint = false; - } else { if (! macro) {