Non-KiCad Schematic Importers: Do not save project
Prevents creating unnecessary project files when importing Non KiCad schematics. Also clarified that empty.kicad_wks is required for all importers (not just EAGLE).
This commit is contained in:
parent
35438d3533
commit
8efc2f12d8
|
@ -955,7 +955,8 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
|
||||||
SCH_IO_MGR::FindPlugin( (SCH_IO_MGR::SCH_FILE_T) aFileType ) );
|
SCH_IO_MGR::FindPlugin( (SCH_IO_MGR::SCH_FILE_T) aFileType ) );
|
||||||
Schematic().SetRoot( pi->Load( aFileName, &Schematic() ) );
|
Schematic().SetRoot( pi->Load( aFileName, &Schematic() ) );
|
||||||
|
|
||||||
// Eagle sheets do not use a drawing-sheet frame by default, so set it to an empty one
|
// Non-KiCad schematics do not use a drawing-sheet (or if they do, it works differently
|
||||||
|
// to KiCad), so set it to an empty one
|
||||||
DS_DATA_MODEL& drawingSheet = DS_DATA_MODEL::GetTheInstance();
|
DS_DATA_MODEL& drawingSheet = DS_DATA_MODEL::GetTheInstance();
|
||||||
drawingSheet.SetEmptyLayout();
|
drawingSheet.SetEmptyLayout();
|
||||||
|
|
||||||
|
@ -979,10 +980,6 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
|
||||||
GetScreen()->SetFileName( newfilename.GetFullPath() );
|
GetScreen()->SetFileName( newfilename.GetFullPath() );
|
||||||
GetScreen()->SetModify();
|
GetScreen()->SetModify();
|
||||||
|
|
||||||
SaveProjectSettings();
|
|
||||||
|
|
||||||
UpdateFileHistory( aFileName );
|
|
||||||
|
|
||||||
// Only perform the dangling end test on root sheet.
|
// Only perform the dangling end test on root sheet.
|
||||||
GetScreen()->TestDanglingEnds();
|
GetScreen()->TestDanglingEnds();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue