Fix schematic reload in standalone mode
This commit is contained in:
parent
a210fd570f
commit
0201cb4e7e
|
@ -284,8 +284,10 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
|
||||||
if( differentProject )
|
if( differentProject )
|
||||||
{
|
{
|
||||||
GetSettingsManager()->SaveProject();
|
GetSettingsManager()->SaveProject();
|
||||||
|
Schematic().SetProject( nullptr );
|
||||||
GetSettingsManager()->UnloadProject( &Prj() );
|
GetSettingsManager()->UnloadProject( &Prj() );
|
||||||
GetSettingsManager()->LoadProject( pro.GetFullPath() );
|
GetSettingsManager()->LoadProject( pro.GetFullPath() );
|
||||||
|
CreateScreens();
|
||||||
}
|
}
|
||||||
|
|
||||||
if( schFileType == SCH_IO_MGR::SCH_LEGACY )
|
if( schFileType == SCH_IO_MGR::SCH_LEGACY )
|
||||||
|
@ -313,8 +315,6 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
|
||||||
Prj().SetElem( PROJECT::ELEM_SYMBOL_LIB_TABLE, NULL );
|
Prj().SetElem( PROJECT::ELEM_SYMBOL_LIB_TABLE, NULL );
|
||||||
Prj().SchSymbolLibTable();
|
Prj().SchSymbolLibTable();
|
||||||
|
|
||||||
Schematic().SetProject( &Prj() );
|
|
||||||
|
|
||||||
// Load project settings after schematic has been set up with the project link, since this will
|
// Load project settings after schematic has been set up with the project link, since this will
|
||||||
// update some of the needed schematic settings such as drawing defaults
|
// update some of the needed schematic settings such as drawing defaults
|
||||||
LoadProjectSettings();
|
LoadProjectSettings();
|
||||||
|
|
Loading…
Reference in New Issue