On Tue, Jun 09, 2009 at 10:39:41PM +0200, [email protected] wrote:
> Author: forenr
> Date: Tue Jun  9 22:39:41 2009
> New Revision: 30036
> URL: http://www.lyx.org/trac/changeset/30036
> 
> Log:
> The QFileInfo::refresh() bug is fixed in Qt 4.5.

OK for branch?

> Modified:
>    lyx-devel/trunk/src/support/FileName.cpp
> 
> Modified: lyx-devel/trunk/src/support/FileName.cpp
> ==============================================================================
> --- lyx-devel/trunk/src/support/FileName.cpp  Tue Jun  9 20:16:43 2009        
> (r30035)
> +++ lyx-devel/trunk/src/support/FileName.cpp  Tue Jun  9 22:39:41 2009        
> (r30036)
> @@ -110,11 +110,9 @@
>       ///
>       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());
> 

-- 
Enrico

Reply via email to