]> git.lyx.org Git - features.git/commit
Backup the existing LyX file before attempting to write the new one.
authorRichard Heck <rgheck@lyx.org>
Mon, 9 Jun 2014 21:35:17 +0000 (17:35 -0400)
committerRichard Heck <rgheck@lyx.org>
Sat, 14 Jun 2014 21:42:27 +0000 (17:42 -0400)
commite49f4124c72c1afbfb551706dbc5526654c8945c
tree5676d0d51d805e9d6e85e70afc37cf7988da995c
parenta72e68dd095e49700b702c6b183cc09d30ba6cf4
Backup the existing LyX file before attempting to write the new one.
This avoids dataloss in case we are unable to write the new one after
all.

A more sophisticated approach, due to Georg, is in master, but it needs
more testing that it will be able to get before the release of 2.1.1.
That should be committed to 2.1.x when it is ready and this patch backed
out again.
ANNOUNCE
src/Buffer.cpp
status.21x