mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-31 10:06:28 +02:00
Merge pull request #2283 from abdelq/crash-on-reload
Avoid crashing when clicking reload
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user