mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
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 (cherry picked from commit 9864337914eb7c166c1ff068dbe216301cd6b4ac)
This commit is contained in:
parent
4f874057ab
commit
fd9d923bb7
@ -410,9 +410,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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user