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