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