From 24969f2a873fc7e517ca3809ee343a94503a3f6e Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 30 Jul 2008 07:31:48 +0000 Subject: [PATCH] previous rev: better fix from Richard. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25998 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/FileName.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index ce7749542e..ac1e376d92 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -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(); -- 2.39.2