mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Fix bug #9544: Mark file clean after we write it.
(cherry picked from commit 61448d8cb2
)
Conflicts:
src/Buffer.cpp
This commit is contained in:
parent
565d35ed58
commit
2f80c1ca33
@ -1287,10 +1287,14 @@ bool Buffer::save() const
|
||||
// We don't need autosaves in the immediate future. (Asger)
|
||||
resetAutosaveTimers();
|
||||
|
||||
// none of the backup activity that follows is necessary if the
|
||||
// file does not exist
|
||||
if (!fileName().exists())
|
||||
return writeFile(fileName());
|
||||
// if the file does not yet exist, none of the backup activity
|
||||
// that follows is necessary
|
||||
if (!fileName().exists()) {
|
||||
if (!writeFile(fileName()))
|
||||
return false;
|
||||
markClean();
|
||||
return true;
|
||||
}
|
||||
|
||||
// this will hold the name of the location to which we backup
|
||||
// the existing file, if we do that.
|
||||
|
@ -36,6 +36,8 @@ What's new
|
||||
|
||||
- Add Sweave and knitr importers (bug 8734).
|
||||
|
||||
- Correctly save files created from the command line (bug 9544).
|
||||
|
||||
|
||||
* TEX2LYX IMPROVEMENTS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user