mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-09 14:16:28 +01:00
Fix for Audacity crashing when running Jaws on Windows 10 1703
Problem: On Windows 10 1703, with the Jaws screen reader running, additional paint messages are sent to Audacity compared with when Jaws is not running. My assumption is this is probably a Jaws bug. In particular, when a project is closed, ToolDock::OnPaint, and AdornedRulerPanel::OnPaint are called. Fix: changes ensure that these OnPaint functions can be called without causing a crash.
This commit is contained in:
@@ -444,6 +444,13 @@ ToolManager::~ToolManager()
|
||||
// Save the toolbar states
|
||||
WriteConfig();
|
||||
|
||||
// This function causes the toolbars to be destroyed, so
|
||||
// clear the configuration of the ToolDocks which refer to
|
||||
// these toolbars. This change was needed to stop Audacity
|
||||
// crashing when running with Jaws on Windows 10 1703.
|
||||
mTopDock->GetConfiguration().Clear();
|
||||
mBotDock->GetConfiguration().Clear();
|
||||
|
||||
// Remove handlers from parent
|
||||
mParent->Disconnect( wxEVT_LEFT_UP,
|
||||
wxMouseEventHandler( ToolManager::OnMouse ),
|
||||
|
||||
Reference in New Issue
Block a user