mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-12 06:01:13 +02:00
Prefer Destroy() to deleting a window
This commit is contained in:
parent
a27d0aca2b
commit
384fc4a4ae
@ -2929,7 +2929,7 @@ int EffectUIHost::ShowModal()
|
||||
sz->Replace(mCloseBtn, apply);
|
||||
sz->Replace(mApplyBtn, mCloseBtn);
|
||||
sz->Layout();
|
||||
delete mApplyBtn;
|
||||
mApplyBtn->Destroy();
|
||||
mApplyBtn = apply;
|
||||
mApplyBtn->SetDefault();
|
||||
mApplyBtn->SetLabel(wxGetStockLabel(wxID_OK, 0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user