1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-03 14:13:11 +02:00

Bug 2644 - Clearing the entries in Extended Import leaves behind a residual list of file formats

This commit is contained in:
Leland Lucius 2021-01-26 13:36:34 -06:00
parent e5bb95d6f2
commit 6841919d94

View File

@ -647,8 +647,11 @@ void ExtImportPrefs::OnDelRule(wxCommandEvent& WXUNUSED(event))
if (msgres != wxYES)
return;
RuleTable->DeleteRows (last_selected);
PluginList->DeleteAllItems();
items.erase (items.begin() + last_selected);
DoOnRuleTableSelect (last_selected);
// This will change last_selected
RuleTable->DeleteRows (last_selected);
RuleTable->AutoSizeColumns ();
if (last_selected >= RuleTable->GetNumberRows ())
last_selected = RuleTable->GetNumberRows () - 1;