From: Abdelrazak Younes Date: Wed, 30 Jul 2008 07:31:48 +0000 (+0000) Subject: previous rev: better fix from Richard. X-Git-Tag: 1.6.10~3791 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=24969f2a873fc7e517ca3809ee343a94503a3f6e;p=features.git previous rev: better fix from Richard. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25998 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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();