1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-04 15:50:10 +01:00

Fix a few things with chain/effect parameters as reported by Gale

This commit is contained in:
Leland Lucius
2015-04-29 09:54:48 -05:00
parent 7950d4fd5a
commit 20fbb163d2
3 changed files with 30 additions and 2 deletions

View File

@@ -349,7 +349,16 @@ wxString BatchCommands::PromptForPresetFor(const wxString & command, const wxStr
return wxEmptyString; // effect not found.
}
return EffectManager::Get().GetPreset(ID, params, parent);
wxString preset = EffectManager::Get().GetPreset(ID, params, parent);
// Preset will be empty if the user cancelled the dialog, so return the original
// parameter value.
if (preset.IsEmpty())
{
return params;
}
return preset;
}
double BatchCommands::GetEndTime()