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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user