Bugfix: when debugging a modal dialog event or callback, 'run'/'stop' and 'step' was not working

This commit is contained in:
Matthias Koefferlein 2024-06-28 15:45:25 +02:00
parent a0d7ce0cd8
commit 0a453b069c
1 changed files with 2 additions and 5 deletions

View File

@ -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) {