1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 07:59:27 +02:00

Bug 143 - Rogue "Recent &Files" Status Bar entry generated by Effect Menus

Workaround for a bug that is actually in wxWidgets.
This commit is contained in:
James Crook 2017-08-16 15:27:47 +01:00
parent c4c1393987
commit 12410fb552

View File

@ -1505,6 +1505,15 @@ void AudacityProject::CreateMenusAndCommands()
SetMenuBar(menubar.release());
// Bug 143 workaround.
// The bug is in wxWidgets. For a menu that has scrollers, the
// scrollers have an ID of 0 (not wxID_NONE which is -3).
// Therefore wxWidgets attempts to find a help string. See
// wxFrameBase::ShowMenuHelp(int menuId)
// It finds a bogus automatic help string of "Recent &Files"
// from that submenu.
// So we set the help string for command with Id 0 to empty.
mRecentFilesMenu->GetParent()->SetHelpString( 0, "" );
}