X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FFileName.cpp;h=929c4165bebd541bead6ce6e7a6a61774e12f89d;hb=8d640dc77608bedddb5b00982c23665584f52d21;hp=9506666d27fc0de2dfbfe26b440db50904d9354d;hpb=bfc7c4d3792b1c4e6d0617d9da177e2df4aa7262;p=lyx.git diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 9506666d27..929c4165be 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -31,7 +31,6 @@ #include #include -#include #include #include @@ -319,6 +318,9 @@ bool FileName::isSymLink() const } +//QFileInfo caching info might fool this test if file was changed meanwhile. +//refresh() helps, but we don't want to put it blindly here, because it might +//trigger slowdown on networked file systems. bool FileName::isFileEmpty() const { LASSERT(!empty(), return true);