fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
3.98k stars 826 forks source link

when saving, first save to a temporary file, then copy to the real destination #1133

Open davidperrenoud opened 10 years ago

davidperrenoud commented 10 years ago

From irasc...@gmail.com on June 18, 2010 02:12:02

in case of a crash during save, less likely to delete the original

Original issue: http://code.google.com/p/fritzing/issues/detail?id=1133

davidperrenoud commented 10 years ago

From bryant.m...@gmail.com on June 18, 2010 09:05:22

I was thinking this would be a good way to just reuse the autosave code? Just manually trigger an autosave before a real save and there's nothing to worry about. Set "m_autosaveNeeded = true" and then call "backupSketch()".

davidperrenoud commented 10 years ago

From irasc...@gmail.com on June 18, 2010 10:03:20

That would work for MainWindow, but not for all the other kinds of files that get saved: parts, bins, program files, etc.

davidperrenoud commented 10 years ago

From irasc...@gmail.com on August 16, 2011 13:30:20

Labels: Component-Code

davidperrenoud commented 10 years ago

From lnunix on January 02, 2012 16:35:02

I'll take a look in that one.

davidperrenoud commented 10 years ago

From irasc...@gmail.com on January 06, 2012 22:12:18

by a funny coincidence, we may be considering working on issue #1225 , in which case work done on this issue in the current implementation may become mostly obsolete

failiz commented 3 years ago

If this still valid? Are there any bugs related to the save process?

KjellMorgenstern commented 3 years ago

Important enough to review this, although the issue is quite old