diff --git a/common/notifications_manager.cpp b/common/notifications_manager.cpp index 4c3358a633..2f792ce5b0 100644 --- a/common/notifications_manager.cpp +++ b/common/notifications_manager.cpp @@ -132,7 +132,7 @@ private: void onDismiss( wxHyperlinkEvent& aEvent ) { CallAfter( - [=]() + [this]() { // This will cause this panel to get deleted m_manager->Remove( m_notification->key );