diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index d5c7c59054..746d867833 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -347,14 +347,14 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in } else { + // This will rename the file if there is an autosave and the user want to recover. + CheckForAutoSaveFile( fullFileName ); + SetScreen( nullptr ); SCH_PLUGIN* plugin = SCH_IO_MGR::FindPlugin( schFileType ); SCH_PLUGIN::SCH_PLUGIN_RELEASER pi( plugin ); - // This will rename the file if there is an autosave and the user want to recover - CheckForAutoSaveFile( fullFileName ); - try { Schematic().SetRoot( pi->Load( fullFileName, &Schematic() ) );