From 170d7a2ab1b8d7a71b2c0552d9cde72fc959eb3f Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 9 Jun 2009 20:39:41 +0000 Subject: [PATCH] The QFileInfo::refresh() bug is fixed in Qt 4.5. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30036 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/FileName.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 0363fa1612..8a5584564e 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -110,11 +110,9 @@ struct FileName::Private /// inline void refresh() { -// There seems to be a bug in Qt >= 4.2.0, at least, that causes problems with +// There seems to be a bug in Qt >= 4.2.0 and < 4.5.0, that causes problems with // QFileInfo::refresh() on *nix. So we recreate the object in that case. -// FIXME: When Trolltech fixes the bug, we will have to replace 0x999999 below -// with the actual working minimum version. -#if defined(_WIN32) || (QT_VERSION >= 0x999999) +#if defined(_WIN32) || (QT_VERSION >= 0x040500) fi.refresh(); #else fi = QFileInfo(fi.absoluteFilePath()); -- 2.39.2