Do not call SafeYield on close

wxSafeYield() is not "safe".  Pending actions may include deletion of
the currently active class.  This will cause crashes when exiting.  If
needed for specific behaviors, we should use wxSafeYieldFor( flag ) with
the appropriate events specified rather than a general yield which can
cause more problems
This commit is contained in:
Seth Hillbrand 2022-01-06 12:31:59 -08:00
parent 78e737b9d8
commit 9864337914
1 changed files with 0 additions and 3 deletions

View File

@ -415,9 +415,6 @@ bool KICAD_MANAGER_FRAME::CloseProject( bool aSave )
if( !Kiway().PlayersClose( false ) )
return false;
// Give a timeslice for the save-changes? dialog (and for the project to actually close)
wxSafeYield();
// Save the project file for the currently loaded project.
if( m_active_project )
{