1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-17 22:21:17 +01:00

More of bug 1338: avoid Mac hang with modal invocation of plugin...

... This required a separate set of changes and testing for the VST version of
SPAN, another for the AU version.

see commit c8e570797f
This commit is contained in:
Paul Licameli
2017-07-24 16:49:15 -04:00
parent 6ce85bee9a
commit 54afdc762f
7 changed files with 22 additions and 1 deletions

View File

@@ -1747,7 +1747,7 @@ bool AudioUnitEffect::PopulateUI(wxWindow *parent)
{
auto innerSizer = std::make_unique<wxBoxSizer>(wxVERTICAL);
innerSizer->Add(pControl.release(), 1, wxEXPAND);
innerSizer->Add((mpControl = pControl.release()), 1, wxEXPAND);
container->SetSizer(innerSizer.release());
}
@@ -1808,6 +1808,8 @@ bool AudioUnitEffect::CloseUI()
#ifdef __WX_EVTLOOP_BUSY_WAITING__
wxEventLoop::SetBusyWaiting(false);
#endif
if (mpControl)
mpControl->Close(), mpControl = nullptr;
#endif
mParent->RemoveEventHandler(this);