Fix leftover modification of file history

This commit is contained in:
Jon Evans 2020-08-09 10:16:13 -04:00
parent c6e388db14
commit e4c20e0ac9
1 changed files with 1 additions and 5 deletions

View File

@ -146,11 +146,7 @@ bool PGM_KICAD::OnPgmInit()
wxString last_pro = settings->m_OpenProjects.front();
settings->m_OpenProjects.erase( settings->m_OpenProjects.begin() );
if( !wxFileExists( last_pro ) )
{
frame->GetFileHistory().RemoveFileFromHistory( 0 );
}
else
if( wxFileExists( last_pro ) )
{
// Try to open the last opened project,
// if a project name is not given when starting Kicad