]> git.lyx.org Git - features.git/commitdiff
previous rev: better fix from Richard.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 30 Jul 2008 07:31:48 +0000 (07:31 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 30 Jul 2008 07:31:48 +0000 (07:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25998 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp

index ce7749542edec11ca3aa0e6a7832bfd94cb2f37a..ac1e376d928024e3f05518626ce33d46813d7bc6 100644 (file)
@@ -816,10 +816,11 @@ bool operator==(FileName const & lhs, FileName const & rhs)
        //   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())
+               return rhs.empty();
 
-       if (lhs.empty() || rhs.empty())
+       if (rhs.empty())
+               // Avoid unnecessary checks.
                return false;
 
        lhs.d->refresh();