1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 23:33:49 +01:00

Require a ProjectWindow as ancestor of effect dialog...

... by passing parent as reference, not pointer, and testing in the dialog
factory function.

This is important so that we know the lifetime of an effect dialog, even when
it is non-modal, is bounded by the lifetime of the associated project.
This commit is contained in:
Paul Licameli
2020-01-06 10:09:18 -05:00
parent f50171ed00
commit bb26b2f2c4
27 changed files with 51 additions and 40 deletions

View File

@@ -1104,7 +1104,7 @@ void MacrosWindow::OnEditCommandParams(wxCommandEvent & WXUNUSED(event))
auto command = mMacroCommands.GetCommand(item);
wxString params = mMacroCommands.GetParams(item);
params = MacroCommands::PromptForParamsFor(command, params, this).Trim();
params = MacroCommands::PromptForParamsFor(command, params, *this).Trim();
Raise();
mMacroCommands.DeleteFromMacro(item);