mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-28 03:50:00 +00:00
#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:
parent
7d03b5652c
commit
66d0d61b0c
@ -2437,6 +2437,8 @@ bool Buffer::isExternallyModified(CheckMethod method) const
|
|||||||
void Buffer::saveCheckSum() const
|
void Buffer::saveCheckSum() const
|
||||||
{
|
{
|
||||||
FileName const & file = d->filename;
|
FileName const & file = d->filename;
|
||||||
|
|
||||||
|
file.refresh();
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
d->timestamp_ = file.lastModified();
|
d->timestamp_ = file.lastModified();
|
||||||
d->checksum_ = file.checksum();
|
d->checksum_ = file.checksum();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user