Fix wrong "externally modified" message

This was a regression of 10364082c8.
This commit is contained in:
Georg Baum 2014-06-09 13:17:40 +02:00
parent f09a9fe2e6
commit f792e70d0a

View File

@ -1325,6 +1325,9 @@ bool Buffer::save() const
tempfile.setAutoRemove(false);
if (made_backup &&
(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();
return true;
}