From f1ee6de0251901a9622dfdc8197a8ae24178d7fc Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 23 Mar 2014 07:44:15 +0100 Subject: [PATCH] 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. --- eeschema/files-io.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index 8e83cdc524..f7c91d6570 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -376,7 +376,9 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in msg.Printf( _( "File '%s' not found." ), GetChars( g_RootSheet->GetScreen()->GetFileName() ) ); 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. @@ -392,7 +394,9 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in SetSheetNumberAndCount(); 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. }