Skip to content
Snippets Groups Projects
Commit 5830ace8 authored by Seth Hillbrand's avatar Seth Hillbrand :flag_il:
Browse files

Move quitting flag to manager quit

The flag is to protect against the frame going out of scope with the
references intact.  This shouldn't be in CloseProject because we close
the project without removing the frame.  Instead, placing it in OnExit
gets set correctly when closing the whole project manager

Fixes kicad/code/kicad#10018
parent 6bcb5cf3
No related branches found
No related tags found
No related merge requests found
Pipeline #431472005 passed with warnings
......@@ -405,6 +405,7 @@ void KICAD_MANAGER_FRAME::doCloseWindow()
void KICAD_MANAGER_FRAME::OnExit( wxCommandEvent& event )
{
Pgm().m_Quitting = true;
Close( true );
}
......@@ -435,8 +436,6 @@ bool KICAD_MANAGER_FRAME::CloseProject( bool aSave )
m_leftWin->EmptyTreePrj();
Pgm().m_Quitting = true;
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment