From 5087c076c1cdfb7e1b937338c4bb43b470a23f54 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Fri, 12 Apr 2024 19:52:42 -0400 Subject: [PATCH] Lambda capture this for a callafter --- common/notifications_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );