diff --git a/src/lay/lay/layMacroEditorPage.cc b/src/lay/lay/layMacroEditorPage.cc index 98d65f5e0..30249ac0b 100644 --- a/src/lay/lay/layMacroEditorPage.cc +++ b/src/lay/lay/layMacroEditorPage.cc @@ -124,10 +124,14 @@ MacroEditorNotificationWidget::MacroEditorNotificationWidget (MacroEditorPage *p void MacroEditorNotificationWidget::action_triggered () { + BEGIN_PROTECTED + auto a = m_action_buttons.find (sender ()); if (a != m_action_buttons.end ()) { mp_parent->notification_action (*mp_notification, a->second); } + + END_PROTECTED_W (this) } void diff --git a/src/layview/layview/layLayoutView_qt.cc b/src/layview/layview/layLayoutView_qt.cc index 8e55726a4..3045f4881 100644 --- a/src/layview/layview/layLayoutView_qt.cc +++ b/src/layview/layview/layLayoutView_qt.cc @@ -139,10 +139,14 @@ LayoutViewNotificationWidget::LayoutViewNotificationWidget (LayoutViewWidget *pa void LayoutViewNotificationWidget::action_triggered () { + BEGIN_PROTECTED + auto a = m_action_buttons.find (sender ()); if (a != m_action_buttons.end ()) { mp_parent->notification_action (*mp_notification, a->second); } + + END_PROTECTED_W (this) } void