FILE
-* When I "Save as..." in /tmp, I get a Backup error popup about non writable
- /tmp, which is obviously not true. The file is there, and if I try to Save
- as again, I get the overwrite popup warning twice: once in English, once
- in French. (J. P. Chretien)
-
* Loading de_Userguide.lyx results in two parse errors:
Paragraph ended in line 21206
Missing \end_layout.
c:\> lyx-qt4.exe -geometry 800x600+100+30
Wrong command line option `-geometry'. Exiting.
FIXED (Peter, 2006-11-29)
+
+* When I "Save as..." in /tmp, I get a Backup error popup about non writable
+ /tmp, which is obviously not true. The file is there, and if I try to Save
+ as again, I get the overwrite popup warning twice: once in English, once
+ in French. (J. P. Chretien)
+ FIXED (Michael (found the problem), Georg (fix), 2006-11-30)
+
// We don't need autosaves in the immediate future. (Asger)
resetAutosaveTimers();
- // make a backup
+ // make a backup if the file already exists
string s;
- if (lyxrc.make_backup) {
+ if (lyxrc.make_backup && fs::exists(fileName())) {
s = fileName() + '~';
if (!lyxrc.backupdir_path.empty())
s = addName(lyxrc.backupdir_path,