]> git.lyx.org Git - lyx.git/commitdiff
Fix wrong "externally modified" message
authorGeorg Baum <baum@lyx.org>
Mon, 9 Jun 2014 11:17:40 +0000 (13:17 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 9 Jun 2014 11:17:40 +0000 (13:17 +0200)
This was a regression of 10364082c835.

src/Buffer.cpp

index bf12159db8f1f76ac9b45438f851a812f94e8b7c..10e7a277fd08f165c3b50fbe7af4f7213bbed444 100644 (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;
        }