]> git.lyx.org Git - features.git/commitdiff
Qt does not compare empty file info apparently.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 30 Jul 2008 07:18:47 +0000 (07:18 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 30 Jul 2008 07:18:47 +0000 (07:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25997 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp

index bf675c9a6eb5f6c7d01c0da26b2b7e3689a012de..ce7749542edec11ca3aa0e6a7832bfd94cb2f37a 100644 (file)
@@ -814,6 +814,14 @@ bool operator==(FileName const & lhs, FileName const & rhs)
        // FIXME: 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.
+
+       if (lhs.empty() && rhs.empty())
+               return true;
+
+       if (lhs.empty() || rhs.empty())
+               return false;
+
        lhs.d->refresh();
        rhs.d->refresh();