mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 16:48:44 +02:00
Use the correct variable
This commit is contained in:
parent
b8b4b23910
commit
c372519e52
@ -947,7 +947,6 @@ void PluginRegistrationDialog::OnOK(wxCommandEvent & WXUNUSED(evt))
|
|||||||
ProgressDialog progress(_("Plugin Manager: Effects"), msg, pdlgHideStopButton);
|
ProgressDialog progress(_("Plugin Manager: Effects"), msg, pdlgHideStopButton);
|
||||||
progress.CenterOnParent();
|
progress.CenterOnParent();
|
||||||
|
|
||||||
int status;
|
|
||||||
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)
|
||||||
{
|
{
|
||||||
@ -957,7 +956,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");
|
||||||
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;
|
||||||
@ -978,7 +977,7 @@ void PluginRegistrationDialog::OnOK(wxCommandEvent & WXUNUSED(evt))
|
|||||||
}
|
}
|
||||||
else if (item.state == STATE_New)
|
else if (item.state == STATE_New)
|
||||||
{
|
{
|
||||||
for (size_t j = 0, cnt = item.plugs.GetCount(); i < cnt; i++)
|
for (size_t j = 0, cnt = item.plugs.GetCount(); j < cnt; j++)
|
||||||
{
|
{
|
||||||
item.plugs[j]->SetValid(false);
|
item.plugs[j]->SetValid(false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user