The QFileInfo::refresh() bug is fixed in Qt 4.5.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30038 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-06-10 11:34:28 +00:00
parent dbfb73e740
commit 8d21593429
2 changed files with 3 additions and 4 deletions

View File

@ -111,11 +111,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());

View File

@ -61,6 +61,7 @@ What's new
and a python script (lyxpak.py) for creating archives of a lyx file and
all its ancillary files (graphics and so on) to development/tools.
- Take advantage of some bugfixes in Qt 4.5 for internal file handling.
** Bug fixes: