mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-31 16:09:28 +02:00
std::once_flag should be static
This commit is contained in:
parent
55bf357b8e
commit
80cf77eb19
@ -263,7 +263,7 @@ TrackPanel::TrackPanel(wxWindow * parent, wxWindowID id,
|
||||
// Whenever activation swaps between projects, the track panel "captures"
|
||||
// the keyboard, which means its sub-cells like Label tracks are given
|
||||
// the chance to process keystrokes before CommandManager.
|
||||
std::once_flag flag;
|
||||
static std::once_flag flag;
|
||||
std::call_once(flag, []{
|
||||
wxTheApp->Bind(EVT_PROJECT_ACTIVATION,
|
||||
[](wxCommandEvent &){
|
||||
|
Loading…
x
Reference in New Issue
Block a user