The safety of running the event loop during doCloseWindow is debatable.

(Possibly a fix for Sentry KICAD-7T.)
This commit is contained in:
Jeff Young 2023-01-24 10:28:53 +00:00
parent 99fae6a327
commit b0ec006b81
1 changed files with 1 additions and 5 deletions

View File

@ -1098,11 +1098,7 @@ void PCB_EDIT_FRAME::doCloseWindow()
// Remove the auto save file on a normal close of Pcbnew.
if( fn.FileExists() && !wxRemoveFile( fn.GetFullPath() ) )
{
wxString msg = wxString::Format( _( "The auto save file '%s' could not be removed!" ),
fn.GetFullPath() );
wxMessageBox( msg, Pgm().App().GetAppName(), wxOK | wxICON_ERROR, this );
}
wxLogTrace( traceAutoSave, wxT( "The auto save file could not be removed!" ) );
// Make sure local settings are persisted
SaveProjectSettings();