rgheck wrote:
Then again, if there were some other way to avoid the refresh() call,
that would also solve this problem, since then we can let Qt cache for
us. But I don't see one.
Well, the attached might do it, so far as refresh() is concerned, since
it was non-existence that caused the problem. But, as Vincent said, we
can't really be sure when Qt will want to access the file system and
when it won't, so maybe the other solution is still better.
rh
Index: support/FileName.cpp
===================================================================
--- support/FileName.cpp (revision 28882)
+++ support/FileName.cpp (working copy)
@@ -945,8 +945,10 @@
// Avoid unnecessary checks below.
return false;
- lhs.d->refresh();
- rhs.d->refresh();
+ if (!lhs.exists())
+ lhs.d->refresh();
+ if (!rhs.exists())
+ rhs.d->refresh();
if (!lhs.d->fi.isSymLink() && !rhs.d->fi.isSymLink()) {
// Qt already checks if the filesystem is case sensitive or not.