More informative name for backups of files from older versions.

This commit is contained in:
Richard Heck 2016-03-27 19:40:02 -04:00
parent 23f6c1c962
commit 82c3a44337

View File

@ -1321,7 +1321,7 @@ FileName Buffer::getBackupName() const {
fn.onlyPath().absFileName() : fn.onlyPath().absFileName() :
lyxrc.backupdir_path; lyxrc.backupdir_path;
string const fform = convert<string>(d->file_format); string const fform = convert<string>(d->file_format);
string const backname = fname + "-" + fform; string const backname = fname + "-lyxformat-" + fform;
FileName backup(addName(fpath, addExtension(backname, fext))); FileName backup(addName(fpath, addExtension(backname, fext)));
// limit recursion, just in case // limit recursion, just in case