kicad/eeschema
Seth Hillbrand b0fddef9b4 Don't rename existing schematic file
We should never leave a situation where the schematic file may no longer
exist (if the first rename succeeds and the second fails).  So, make a
backup copy of the original schematic file and then attempt to rename
the autosave over the first file.  In this case, if either attempt
fails, we do not lose the original file

Fixes https://gitlab.com/kicad/code/kicad/issues/10074

Fixes https://gitlab.com/kicad/code/kicad/issues/10256

Fixes https://gitlab.com/kicad/code/kicad/issues/10219

(cherry picked from commit b1658fdf9a)
2022-01-04 20:28:21 -08:00
..
dialogs CvPcb: fix crash due to a null pointer: pcbconfig() can return null. 2022-01-04 14:51:32 +01:00
netlist_exporters Add tuner support for potentiometer code model 2021-12-28 02:53:39 +01:00
plugins Install kicad_utils.py BOM plugin helper 2021-12-13 22:52:31 +00:00
sch_plugins Tear down the wxPoint trigo helpers 2022-01-04 21:23:11 -05:00
sim Yeet wxPoint/wxSize out of PLOTTER 2021-12-29 19:02:50 +00:00
symbol_editor Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
tools Rename ComparePageNumAndName -> ComparePageNum 2022-01-02 23:20:17 +00:00
widgets Cleanup formatting and warnings in tuner_slider 2021-12-30 23:03:13 +00:00
CMakeLists.txt Bump minimum required CMake version to 3.11 2022-01-01 21:35:08 -05:00
annotate.cpp Be more consistent about annotation warngings. 2021-11-29 14:24:45 +00:00
autoplace_fields.cpp Another batch of point changes 2022-01-01 13:17:12 -05:00
bom_plugins.cpp Adjust macOS BOM plugin Python path 2021-12-13 22:52:31 +00:00
bom_plugins.h Unwrap some std::library typedefs. 2021-07-28 22:16:38 +01:00
bus-wire-junction.cpp Ensure merged line gets selected if either parent is 2022-01-01 16:53:52 -08:00
bus_alias.cpp Proper numeric sorting for intersheet refs. 2021-10-01 18:29:21 +01:00
bus_alias.h More NULL expunging. 2021-07-16 16:13:41 -04:00
cmp_library.keywords
cmp_library_lexer.cpp Expunge the use of the word component from Eeschema code. 2021-06-14 14:00:21 -04:00
component_references_lister.cpp Replace RefDesCmp with better StrNumCmp 2021-09-01 11:48:01 -07:00
connection_graph.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
connection_graph.h Expunge the use of the word component from Eeschema code. 2021-06-14 14:00:21 -04:00
cross-probing.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
default_values.h Fix some issues with incorrectly scaled defaults given in mils. 2021-08-25 20:04:06 +01:00
ee_collectors.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
ee_collectors.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
eeschema.cpp Implement Reset to Defaults for all preferences panels. 2021-12-24 17:38:39 +00:00
eeschema.icns Add drop shadows to MacOS icons 2021-07-30 20:55:34 -07:00
eeschema_config.cpp Flatten out some more preferences. 2021-12-24 15:43:20 +00:00
eeschema_doc.icns Add drop shadows to MacOS icons 2021-07-30 20:55:34 -07:00
eeschema_id.h Expunge the use of the word part from Eeschema code. 2021-06-15 08:32:11 -04:00
eeschema_settings.cpp Don't split legacy paths 2022-01-04 11:09:40 -08:00
eeschema_settings.h Add show/hide controls for ERC markers. 2021-12-24 17:38:50 +00:00
erc.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
erc.h Naming conventions. 2021-05-05 22:58:40 +01:00
erc_item.cpp Fixes for Eagle importer. 2021-06-16 21:44:18 +01:00
erc_item.h Fixes for Eagle importer. 2021-06-16 21:44:18 +01:00
erc_settings.cpp Rework JSON integration to speed up build 2021-06-05 17:08:38 -04:00
erc_settings.h Fixes for Eagle importer. 2021-06-16 21:44:18 +01:00
fields_grid_table.cpp Convert wxPoint/wxSize starting from EDA_RECT usages 2022-01-01 11:30:33 -05:00
fields_grid_table.h SCH_NETCLASS_FLAGs and SCH_FIELDs for labels. 2021-12-24 16:13:27 +00:00
files-io.cpp Don't rename existing schematic file 2022-01-04 20:28:21 -08:00
general.h Rename layer ids file. 2021-07-29 16:03:25 +01:00
generate_alias_info.cpp Fix kicad_string.h / string.cpp mismatch. 2021-07-29 16:03:25 +01:00
generate_alias_info.h Substitute all wxHtmlWindow with HTML_WINDOW 2021-10-12 07:07:15 +00:00
getpart.cpp Threading safety. 2021-10-23 11:38:03 +01:00
hierarch.cpp Rename ComparePageNumAndName -> ComparePageNum 2022-01-02 23:20:17 +00:00
hierarch.h Pass wxString objects by reference instead of on the stack. 2021-07-27 08:41:27 -04:00
invoke_sch_dialog.h Expunge the use of the word part from Eeschema code. 2021-06-15 08:32:11 -04:00
lib_arc.cpp Replace individual LIB_* shapes with LIB_SHAPE (based on EDA_SHAPE). 2021-10-15 12:45:43 +01:00
lib_field.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
lib_field.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
lib_item.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
lib_item.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
lib_pin.cpp Move to new font engine. 2022-01-02 14:57:03 +00:00
lib_pin.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
lib_shape.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
lib_shape.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
lib_symbol.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
lib_symbol.h Move to new font engine. 2022-01-02 14:57:03 +00:00
lib_text.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
lib_text.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
libarch.cpp A bit more Part -> Symbol. 2021-06-17 22:24:41 +01:00
menubar.cpp Add show/hide controls for ERC markers. 2021-12-24 17:38:50 +00:00
pin_numbers.cpp We don't keep a CHANGELOG.TXT 2021-10-05 19:46:53 -07:00
pin_numbers.h We don't keep a CHANGELOG.TXT 2021-10-05 19:46:53 -07:00
pin_type.cpp Avoid sharing gdicmn for just bitmaps 2021-06-03 01:46:04 -04:00
pin_type.h Expunge the use of the word component from Eeschema code. 2021-06-14 14:00:21 -04:00
project_rescue.cpp Eeschema: fix broken project symbol rescue bug. 2021-09-09 10:21:09 -04:00
project_rescue.h More NULL expunging. 2021-07-16 16:13:41 -04:00
sch_base_frame.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_base_frame.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_bitmap.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_bitmap.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_bus_entry.cpp Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
sch_bus_entry.h Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
sch_connection.cpp Fix highlighting complex connections from subsheets 2021-10-25 22:14:48 -04:00
sch_connection.h Fix highlighting complex connections from subsheets 2021-10-25 22:14:48 -04:00
sch_draw_panel.cpp Cleanup. 2021-12-23 20:36:18 +00:00
sch_draw_panel.h Expunge the use of the word component from Eeschema code. 2021-06-14 14:00:21 -04:00
sch_edit_frame.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_edit_frame.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_field.cpp Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
sch_field.h Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
sch_file_versions.h SCH_NETCLASS_FLAGs and SCH_FIELDs for labels. 2021-12-24 16:13:27 +00:00
sch_io_mgr.cpp More NULL expunging. 2021-07-16 16:13:41 -04:00
sch_io_mgr.h File open/import progress dialogs. 2021-06-23 23:55:54 +01:00
sch_item.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_item.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_junction.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_junction.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_line.cpp Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
sch_line.h Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
sch_marker.cpp Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
sch_marker.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_no_connect.cpp Another batch of point changes 2022-01-01 13:17:12 -05:00
sch_no_connect.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_painter.cpp Move to new font engine. 2022-01-02 14:57:03 +00:00
sch_painter.h Move to new font engine. 2022-01-02 14:57:03 +00:00
sch_pin.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_pin.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_plugin.cpp More NULL expunging. 2021-07-16 16:13:41 -04:00
sch_preview_panel.cpp Flatten out some more preferences. 2021-12-24 15:43:20 +00:00
sch_preview_panel.h Reduce some eda_item.h usage in headers 2021-06-06 11:09:06 -04:00
sch_reference_list.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_rtree.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_screen.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_screen.h Remove some more wxPoint 2022-01-01 14:12:20 -05:00
sch_shape.cpp Another batch of point changes 2022-01-01 13:17:12 -05:00
sch_shape.h Some more wxPoint removal 2022-01-01 12:11:21 -05:00
sch_sheet.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_sheet.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_sheet_path.cpp Rename ComparePageNumAndName -> ComparePageNum 2022-01-02 23:20:17 +00:00
sch_sheet_path.h Rename ComparePageNumAndName -> ComparePageNum 2022-01-02 23:20:17 +00:00
sch_sheet_pin.cpp Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
sch_sheet_pin.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_symbol.cpp Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
sch_symbol.h Remove some more wxPoint 2022-01-01 14:12:20 -05:00
sch_text.cpp Move to new font engine. 2022-01-02 14:57:03 +00:00
sch_text.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
sch_text_help.md Fix outdated syntax in help text 2021-11-25 12:53:29 +00:00
sch_validators.cpp Fix bus validation. 2021-09-17 22:01:17 +01:00
sch_validators.h Pass wxString objects by reference instead of on the stack. 2021-07-27 08:41:27 -04:00
sch_view.cpp Rename layer ids file. 2021-07-29 16:03:25 +01:00
sch_view.h Add show/hide controls for ERC markers. 2021-12-24 17:38:50 +00:00
schematic.cpp Eeschema: fix broken page numbers when renaming a sheet file name. 2021-12-09 12:56:03 +00:00
schematic.h Allow titleblock vars to be resolved outside the titleblock. 2021-07-06 13:30:17 +01:00
schematic.keywords SCH_NETCLASS_FLAGs and SCH_FIELDs for labels. 2021-12-24 16:13:27 +00:00
schematic_settings.cpp Use ISO 128-2 values for dashed line defaults. 2021-12-25 14:00:57 +00:00
schematic_settings.h User-configureable dash styles (and dash-dot-dot). 2021-12-23 20:36:24 +00:00
schematic_undo_redo.cpp Make sure undo/redo of pagesetup is done to correct sheet. 2021-12-23 16:54:03 +00:00
sheet.cpp Update BASE_SCREEN to VECTOR2I 2022-01-01 11:30:33 -05:00
symbol_async_loader.cpp Fix single-threaded loads/connectivity 2021-12-14 17:18:46 -08:00
symbol_async_loader.h Rename LIB_PART to LIB_SYMBOL. 2021-06-14 07:11:17 -04:00
symbol_lib_table.cpp Normalize drawing sheet path to env vars & prj, not just prj. 2021-10-02 23:39:45 +01:00
symbol_lib_table.h More NULL expunging. 2021-07-16 16:13:41 -04:00
symbol_library.cpp Formatting. 2021-12-24 11:39:57 +00:00
symbol_library.h Unwrap some std::library typedefs. 2021-07-28 22:16:38 +01:00
symbol_tree_model_adapter.cpp Dark mode for a bunch of HTML dialogs. 2021-09-14 21:23:57 +01:00
symbol_tree_model_adapter.h Rename SCH_COMPONENT to SCH_SYMBOL. 2021-06-10 10:34:49 -04:00
symbol_tree_synchronizing_adapter.cpp Fix kicad_string.h / string.cpp mismatch. 2021-07-29 16:03:25 +01:00
symbol_tree_synchronizing_adapter.h Remove and re-add saved-as libraries when Syncing tree. 2021-01-31 23:00:17 +00:00
symbol_viewer_frame.cpp Flatten out some more preferences. 2021-12-24 15:43:20 +00:00
symbol_viewer_frame.h Expunge the use of the word component from Eeschema code. 2021-06-14 14:00:21 -04:00
toolbars_sch_editor.cpp SCH_NETCLASS_FLAGs and SCH_FIELDs for labels. 2021-12-24 16:13:27 +00:00
toolbars_symbol_viewer.cpp Rename class_library.[h|cpp] to symbol_library.[h|cpp]. 2021-06-15 09:24:55 -04:00
transform.cpp Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
transform.h Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00