mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-15 07:01:18 +02: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