#7299 correct Buffer::saveCheckSum() method for new created files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37737 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2011-02-20 10:53:07 +00:00
parent 7d03b5652c
commit 66d0d61b0c

View File

@ -2437,6 +2437,8 @@ bool Buffer::isExternallyModified(CheckMethod method) const
void Buffer::saveCheckSum() const
{
FileName const & file = d->filename;
file.refresh();
if (file.exists()) {
d->timestamp_ = file.lastModified();
d->checksum_ = file.checksum();