v...@lyx.org writes:

| Author: vfr
| Date: Sat Mar 14 11:47:29 2009
| New Revision: 28768
>
| Modified: lyx-devel/branches/BRANCH_1_6_X/src/support/FileName.cpp
| URL: 
http://www.lyx.org/trac/file/lyx-devel/branches/BRANCH_1_6_X/src/support/FileName.cpp?rev=28768
| ==============================================================================
| --- lyx-devel/branches/BRANCH_1_6_X/src/support/FileName.cpp (original)
| +++ lyx-devel/branches/BRANCH_1_6_X/src/support/FileName.cpp Sat Mar 14 
11:47:29 2009
| @@ -944,7 +944,10 @@
|       
|       if (!lhs.d->fi.isSymLink() && !rhs.d->fi.isSymLink()) {
|               // Qt already checks if the filesystem is case sensitive or not.
| -             return lhs.d->fi == rhs.d->fi;
| +             return lhs.d->fi == rhs.d->fi 
| +                     // This is needed as in Qt4.5, QFileInfo::operator== 
compares
| +                     // the location of the two files and not the files 
themselves.
| +                     && lhs.d->fi.fileName() == rhs.d->fi.fileName();
|       }

You really shouldn't put comments inline in code like this.

Perhaps this should be moved out into a helper func even.

-- 
    Lgb

Reply via email to