Fix a crash bug on quitting on OSX.
This commit is contained in:
parent
a4f83073e3
commit
8eb2e986cf
|
@ -273,8 +273,9 @@ bool EDA_BASE_FRAME::ProcessEvent( wxEvent& aEvent )
|
||||||
if( !wxFrame::ProcessEvent( aEvent ) )
|
if( !wxFrame::ProcessEvent( aEvent ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if( IsShown() && m_hasAutoSave && IsActive() &&
|
if( !m_isClosing && m_hasAutoSave && IsShown() && IsActive()
|
||||||
(m_autoSaveState != isAutoSaveRequired()) && (m_autoSaveInterval > 0) )
|
&& m_autoSaveState != isAutoSaveRequired()
|
||||||
|
&& m_autoSaveInterval > 0 )
|
||||||
{
|
{
|
||||||
if( !m_autoSaveState )
|
if( !m_autoSaveState )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue