Lambda capture this for a callafter
This commit is contained in:
parent
6c17e275fb
commit
5087c076c1
|
@ -132,7 +132,7 @@ private:
|
||||||
void onDismiss( wxHyperlinkEvent& aEvent )
|
void onDismiss( wxHyperlinkEvent& aEvent )
|
||||||
{
|
{
|
||||||
CallAfter(
|
CallAfter(
|
||||||
[=]()
|
[this]()
|
||||||
{
|
{
|
||||||
// This will cause this panel to get deleted
|
// This will cause this panel to get deleted
|
||||||
m_manager->Remove( m_notification->key );
|
m_manager->Remove( m_notification->key );
|
||||||
|
|
Loading…
Reference in New Issue