1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 15:23:48 +01: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

@@ -847,7 +847,7 @@ void ToolBar::SetButtonToolTip
wxString result;
const auto project = GetActiveProject();
const auto commandManager =
project ? project->GetCommandManager() : nullptr;
project ? &CommandManager::Get( *project ) : nullptr;
if (commandManager)
result =
commandManager->DescribeCommandsAndShortcuts(commands, nCommands);