Skip to content

Commit

Permalink
Bugfix: when debugging a modal dialog event or callback, 'run'/'stop'…
Browse files Browse the repository at this point in the history
… and 'step' was not working
  • Loading branch information
Matthias Koefferlein committed Jun 28, 2024
1 parent a0d7ce0 commit 0a453b0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lay/lay/layMacroEditorDialog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 0a453b0

Please sign in to comment.