Commit 922bf1dd authored by Maciej Suminski's avatar Maciej Suminski

Fixed freezing of GAL canvas if user chooses Cancel in the on close dialog.

parent 0ae6b441
...@@ -591,7 +591,6 @@ void PCB_EDIT_FRAME::OnQuit( wxCommandEvent& event ) ...@@ -591,7 +591,6 @@ void PCB_EDIT_FRAME::OnQuit( wxCommandEvent& event )
void PCB_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event ) void PCB_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
{ {
m_canvas->SetAbortRequest( true ); m_canvas->SetAbortRequest( true );
GetGalCanvas()->StopDrawing();
if( GetScreen()->IsModify() ) if( GetScreen()->IsModify() )
{ {
...@@ -615,6 +614,8 @@ void PCB_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event ) ...@@ -615,6 +614,8 @@ void PCB_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
} }
} }
GetGalCanvas()->StopDrawing();
// Delete the auto save file if it exists. // Delete the auto save file if it exists.
wxFileName fn = GetBoard()->GetFileName(); wxFileName fn = GetBoard()->GetFileName();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment