From 8eb2e986cf168d62956c7675d2fabd27bfab05ac Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 24 Sep 2021 14:07:57 +0100 Subject: [PATCH] Fix a crash bug on quitting on OSX. --- common/eda_base_frame.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/eda_base_frame.cpp b/common/eda_base_frame.cpp index 8c49c16a93..a6e7eda125 100644 --- a/common/eda_base_frame.cpp +++ b/common/eda_base_frame.cpp @@ -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 ) {