Fix a crash bug on quitting on OSX.

This commit is contained in:
Jeff Young 2021-09-24 14:07:57 +01:00
parent a4f83073e3
commit 8eb2e986cf
1 changed files with 3 additions and 2 deletions

View File

@ -273,8 +273,9 @@ bool EDA_BASE_FRAME::ProcessEvent( wxEvent& aEvent )
if( !wxFrame::ProcessEvent( aEvent ) )
return false;
if( IsShown() && m_hasAutoSave && IsActive() &&
(m_autoSaveState != isAutoSaveRequired()) && (m_autoSaveInterval > 0) )
if( !m_isClosing && m_hasAutoSave && IsShown() && IsActive()
&& m_autoSaveState != isAutoSaveRequired()
&& m_autoSaveInterval > 0 )
{
if( !m_autoSaveState )
{