mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-20 15:41:18 +01:00
Prefer Destroy() to deleting a window
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user