mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Use long path names when comparing FileNames
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26745 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cab745d661
commit
f4787aa9c9
@ -916,12 +916,15 @@ docstring const FileName::relPath(string const & path) const
|
||||
}
|
||||
|
||||
|
||||
bool operator==(FileName const & lhs, FileName const & rhs)
|
||||
bool operator==(FileName const & l, FileName const & r)
|
||||
{
|
||||
// FIXME: We need to solve this warning from Qt documentation:
|
||||
// FIXME: In future use Qt.
|
||||
// Qt 4.4: We need to solve this warning from Qt documentation:
|
||||
// * Long and short file names that refer to the same file on Windows are
|
||||
// treated as if they referred to different files.
|
||||
// This is supposed to be fixed for Qt5.
|
||||
FileName const lhs(os::internal_path(l.absFilename()));
|
||||
FileName const rhs(os::internal_path(r.absFilename()));
|
||||
|
||||
if (lhs.empty())
|
||||
// QFileInfo::operator==() returns false if the two QFileInfo are empty.
|
||||
|
Loading…
Reference in New Issue
Block a user