///
inline void refresh()
{
-// There seems to be a bug in Qt 4.3.5, at least, that causes problems with
-// QFileInfo::refresh() on Linux. So we recreate the object in that case.
-#if defined(__linux__) && (QT_VERSION >= 0x040300)
- fi = QFileInfo(fi.absoluteFilePath());
-#else
+// There seems to be a bug in Qt >= 4.2.0, at least, 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)
fi.refresh();
+#else
+ fi = QFileInfo(fi.absoluteFilePath());
#endif
}
///