mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Check file extensions before trying to open.
This commit is contained in:
parent
fde693ebe1
commit
e74f56c629
@ -343,14 +343,13 @@ bool PGM_KICAD::OnPgmInit()
|
||||
{
|
||||
wxFileName fn( projToLoad );
|
||||
|
||||
if( fn.Exists() )
|
||||
if( fn.Exists() && ( fn.GetExt() == FILEEXT::ProjectFileExtension
|
||||
|| fn.GetExt() == FILEEXT::LegacyProjectFileExtension ) )
|
||||
{
|
||||
fn.MakeAbsolute();
|
||||
|
||||
if( appType == KICAD_MAIN_FRAME_T )
|
||||
{
|
||||
managerFrame->LoadProject( fn );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user