mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-04 22:29:27 +02:00
Bug 2341 - Macros prompt for save changes even with canceled edits
This commit is contained in:
parent
2ab35e8c1b
commit
f8eb99bb18
@ -1112,14 +1112,18 @@ void MacrosWindow::OnEditCommandParams(wxCommandEvent & WXUNUSED(event))
|
||||
// Just edit the parameters, and not the command.
|
||||
auto command = mMacroCommands.GetCommand(item);
|
||||
wxString params = mMacroCommands.GetParams(item);
|
||||
wxString oldParams = params;
|
||||
|
||||
params = MacroCommands::PromptForParamsFor(command, params, *this).Trim();
|
||||
Raise();
|
||||
|
||||
if (oldParams == params)
|
||||
return; // They did not actually make any changes..
|
||||
|
||||
mMacroCommands.DeleteFromMacro(item);
|
||||
mMacroCommands.AddToMacro(command,
|
||||
params,
|
||||
item);
|
||||
params,
|
||||
item);
|
||||
mChanged = true;
|
||||
mSelectedCommand = item;
|
||||
PopulateList();
|
||||
|
Loading…
x
Reference in New Issue
Block a user