mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-24 06:10:09 +01: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();
|
||||
|
||||
@@ -184,7 +184,7 @@ extern "C"
|
||||
case MenusRebuilt: {
|
||||
AudacityProject *p = GetActiveProject();
|
||||
wxASSERT(p != NULL);
|
||||
CommandManager *c = p->GetCommandManager();
|
||||
CommandManager *c = &CommandManager::Get( *p );
|
||||
wxASSERT(c != NULL);
|
||||
|
||||
wxMenuBar * pBar = p->GetMenuBar();
|
||||
|
||||
Reference in New Issue
Block a user