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

Remove use of GetActiveProject in MacroCommandsDialog...

... instead pass into it the project pointer already given to ctor of
MacrosWindow
This commit is contained in:
Paul Licameli
2019-05-21 21:04:18 -04:00
parent e2539be53b
commit f85f4db704
4 changed files with 9 additions and 4 deletions

View File

@@ -523,6 +523,7 @@ enum {
MacrosWindow::MacrosWindow(
wxWindow * parent, AudacityProject &project, bool bExpanded):
ApplyMacroDialog(parent, project, true)
, mProject{ project }
{
mbExpanded = bExpanded;
auto Title = WindowTitle();
@@ -1063,7 +1064,7 @@ void MacrosWindow::InsertCommandAt(int item)
return;
}
MacroCommandDialog d(this, wxID_ANY);
MacroCommandDialog d(this, wxID_ANY, mProject);
if (!d.ShowModal()) {
Raise();