mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-05 23:19:06 +02:00
Fix for bug #1192
This commit is contained in:
parent
6a9dc57ea7
commit
4d0d88e187
@ -965,9 +965,12 @@ void PluginRegistrationDialog::OnOK(wxCommandEvent & WXUNUSED(evt))
|
|||||||
|
|
||||||
wxString msg;
|
wxString msg;
|
||||||
msg.Printf(_("Enabling effects:\n\n%s"), last3.c_str());
|
msg.Printf(_("Enabling effects:\n\n%s"), last3.c_str());
|
||||||
|
|
||||||
ProgressDialog progress(GetTitle(), msg, pdlgHideStopButton);
|
// Make sure the progress dialog is deleted before we call EndModal() or
|
||||||
progress.CenterOnParent();
|
// we will leave the project window in an unusable state on OSX.
|
||||||
|
// See bug #1192.
|
||||||
|
ProgressDialog *progress = new ProgressDialog(GetTitle(), msg, pdlgHideStopButton);
|
||||||
|
progress->CenterOnParent();
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (ItemDataMap::iterator iter = mItems.begin(); iter != mItems.end(); ++iter)
|
for (ItemDataMap::iterator iter = mItems.begin(); iter != mItems.end(); ++iter)
|
||||||
@ -978,7 +981,7 @@ void PluginRegistrationDialog::OnOK(wxCommandEvent & WXUNUSED(evt))
|
|||||||
if (item.state == STATE_Enabled && item.plugs[0]->GetPluginType() == PluginTypeStub)
|
if (item.state == STATE_Enabled && item.plugs[0]->GetPluginType() == PluginTypeStub)
|
||||||
{
|
{
|
||||||
last3 = last3.AfterFirst(wxT('\n')) + item.path + wxT("\n");
|
last3 = last3.AfterFirst(wxT('\n')) + item.path + wxT("\n");
|
||||||
int status = progress.Update(++i, enableCount, wxString::Format(_("Enabling effect:\n\n%s"), last3.c_str()));
|
int status = progress->Update(++i, enableCount, wxString::Format(_("Enabling effect:\n\n%s"), last3.c_str()));
|
||||||
if (!status)
|
if (!status)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
@ -1016,6 +1019,8 @@ void PluginRegistrationDialog::OnOK(wxCommandEvent & WXUNUSED(evt))
|
|||||||
|
|
||||||
pm.Save();
|
pm.Save();
|
||||||
|
|
||||||
|
delete progress;
|
||||||
|
|
||||||
EndModal(wxID_OK);
|
EndModal(wxID_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user