From: Abdelrazak Younes Date: Sat, 19 Jul 2008 15:57:07 +0000 (+0000) Subject: Potentially fix http://bugzilla.lyx.org/show_bug.cgi?id=5057 X-Git-Tag: 1.6.10~4024 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=87ee3d8c43d7e52aecb43a334b027d49194e33b5;p=features.git Potentially fix http://bugzilla.lyx.org/show_bug.cgi?id=5057 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25713 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 5e0caafb6f..a214052589 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -415,6 +415,10 @@ FileName FileName::getcwd() time_t FileName::lastModified() const { + // QFileInfo caches information about the file. So, in case this file has + // been touched between the object creation and now, we refresh the file + // information. + d->fi.refresh(); return d->fi.lastModified().toTime_t(); }