mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug #9544: Mark file clean after we write it.
This commit is contained in:
parent
f1832074f0
commit
61448d8cb2
@ -1336,8 +1336,12 @@ bool Buffer::save() const
|
|||||||
|
|
||||||
// if the file does not yet exist, none of the backup activity
|
// if the file does not yet exist, none of the backup activity
|
||||||
// that follows is necessary
|
// that follows is necessary
|
||||||
if (!fileName().exists())
|
if (!fileName().exists()) {
|
||||||
return writeFile(fileName());
|
if (!writeFile(fileName()))
|
||||||
|
return false;
|
||||||
|
markClean();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// we first write the file to a new name, then move it to its
|
// we first write the file to a new name, then move it to its
|
||||||
// proper location once that has been done successfully. that
|
// proper location once that has been done successfully. that
|
||||||
|
Loading…
Reference in New Issue
Block a user