Commit f1ee6de0 authored by jean-pierre charras's avatar jean-pierre charras

Eeschema: does not close when the schematic file given in command line to run...

Eeschema: does not close when the schematic file given in command line to run Eeschema is not found (i.e. when starting a new project). Otherwise one cannot start a new schematic project.
parent 2db6c2c9
...@@ -376,7 +376,9 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in ...@@ -376,7 +376,9 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
msg.Printf( _( "File '%s' not found." ), msg.Printf( _( "File '%s' not found." ),
GetChars( g_RootSheet->GetScreen()->GetFileName() ) ); GetChars( g_RootSheet->GetScreen()->GetFileName() ) );
DisplayInfoMessage( this, msg ); DisplayInfoMessage( this, msg );
return false; // return false;
return true; // do not close Eeschema if the file if not found:
// we may have to create a new schematic file.
} }
// load the project. // load the project.
...@@ -392,7 +394,9 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in ...@@ -392,7 +394,9 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
SetSheetNumberAndCount(); SetSheetNumberAndCount();
m_canvas->Refresh( true ); m_canvas->Refresh( true );
return diag; // return diag;
return true; // do not close Eeschema if the file if not found:
// we may have to create a new schematic file.
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment