mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Fix wrong "externally modified" message
This was a regression of 10364082c8
.
This commit is contained in:
parent
f09a9fe2e6
commit
f792e70d0a
@ -1325,6 +1325,9 @@ bool Buffer::save() const
|
|||||||
tempfile.setAutoRemove(false);
|
tempfile.setAutoRemove(false);
|
||||||
if (made_backup &&
|
if (made_backup &&
|
||||||
(symlink ? savefile.copyTo(fileName(), true) : savefile.moveTo(fileName()))) {
|
(symlink ? savefile.copyTo(fileName(), true) : savefile.moveTo(fileName()))) {
|
||||||
|
// saveCheckSum() was already called by writeFile(), but the
|
||||||
|
// time stamp is invalidated by copying/moving
|
||||||
|
saveCheckSum();
|
||||||
markClean();
|
markClean();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user