diff --git a/common/widgets/search_pane_tab.cpp b/common/widgets/search_pane_tab.cpp index 2fb5aee674..dd6dffeb88 100644 --- a/common/widgets/search_pane_tab.cpp +++ b/common/widgets/search_pane_tab.cpp @@ -70,7 +70,7 @@ void SEARCH_PANE_LISTVIEW::GetSelectRowsList( std::vector& aSelectedList ) void SEARCH_PANE_LISTVIEW::OnItemActivated( wxListEvent& aEvent ) { CallAfter( - [&]() + [=]() { m_handler->ActivateItem( aEvent.GetIndex() ); @@ -87,7 +87,7 @@ void SEARCH_PANE_LISTVIEW::OnItemActivated( wxListEvent& aEvent ) void SEARCH_PANE_LISTVIEW::OnItemSelected( wxListEvent& aEvent ) { CallAfter( - [&]() + [=]() { std::vector list; GetSelectRowsList( list ); @@ -101,7 +101,7 @@ void SEARCH_PANE_LISTVIEW::OnItemSelected( wxListEvent& aEvent ) void SEARCH_PANE_LISTVIEW::OnItemDeselected( wxListEvent& aEvent ) { CallAfter( - [&]() + [=]() { std::vector list; GetSelectRowsList( list );