From 12410fb5520293074b9876520d1e2e4cdf2eaec2 Mon Sep 17 00:00:00 2001 From: James Crook Date: Wed, 16 Aug 2017 15:27:47 +0100 Subject: [PATCH] Bug 143 - Rogue "Recent &Files" Status Bar entry generated by Effect Menus Workaround for a bug that is actually in wxWidgets. --- src/Menus.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Menus.cpp b/src/Menus.cpp index db744c72b..a7079f2c9 100644 --- a/src/Menus.cpp +++ b/src/Menus.cpp @@ -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, "" ); }