Report when we don't know what a file is.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18467
This commit is contained in:
Jeff Young 2024-08-14 11:36:57 -06:00
parent 72a0c41e3d
commit 8cc9f766d6

View File

@ -589,7 +589,11 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
pluginType = PCB_IO_MGR::FindPluginTypeFromBoardPath( fullFileName, aCtl );
if( pluginType == PCB_IO_MGR::FILE_TYPE_NONE )
{
progressReporter.Hide();
DisplayErrorMessage( this, _( "File format is not supported" ), wxEmptyString );
return false;
}
bool converted = pluginType != PCB_IO_MGR::LEGACY && pluginType != PCB_IO_MGR::KICAD_SEXP;