1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-15 07:01:18 +02:00

static CommandManager::Get()...

... not member functions of AudacityProject
This commit is contained in:
Paul Licameli
2019-04-26 17:17:04 -04:00
parent 805af452a4
commit 4ba4d0978b
23 changed files with 94 additions and 82 deletions

View File

@@ -154,7 +154,7 @@ int ModuleDispatch(ModuleDispatchTypes type)
wxMenuBar * pBar = p->GetMenuBar();
wxMenu * pMenu = pBar->GetMenu( 8 ); // Menu 8 is the Analyze Menu.
CommandManager * c = p->GetCommandManager();
CommandManager * c = &CommandManager::Get( *p );
c->SetCurrentMenu( pMenu );
c->AddSeparator();