mirror of https://github.com/KLayout/klayout.git
try/catch macro in ::action_triggered
This commit is contained in:
parent
415650bb3a
commit
ec4485a264
|
|
@ -124,10 +124,14 @@ MacroEditorNotificationWidget::MacroEditorNotificationWidget (MacroEditorPage *p
|
||||||
void
|
void
|
||||||
MacroEditorNotificationWidget::action_triggered ()
|
MacroEditorNotificationWidget::action_triggered ()
|
||||||
{
|
{
|
||||||
|
BEGIN_PROTECTED
|
||||||
|
|
||||||
auto a = m_action_buttons.find (sender ());
|
auto a = m_action_buttons.find (sender ());
|
||||||
if (a != m_action_buttons.end ()) {
|
if (a != m_action_buttons.end ()) {
|
||||||
mp_parent->notification_action (*mp_notification, a->second);
|
mp_parent->notification_action (*mp_notification, a->second);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
END_PROTECTED_W (this)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -139,10 +139,14 @@ LayoutViewNotificationWidget::LayoutViewNotificationWidget (LayoutViewWidget *pa
|
||||||
void
|
void
|
||||||
LayoutViewNotificationWidget::action_triggered ()
|
LayoutViewNotificationWidget::action_triggered ()
|
||||||
{
|
{
|
||||||
|
BEGIN_PROTECTED
|
||||||
|
|
||||||
auto a = m_action_buttons.find (sender ());
|
auto a = m_action_buttons.find (sender ());
|
||||||
if (a != m_action_buttons.end ()) {
|
if (a != m_action_buttons.end ()) {
|
||||||
mp_parent->notification_action (*mp_notification, a->second);
|
mp_parent->notification_action (*mp_notification, a->second);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
END_PROTECTED_W (this)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue