previous rev: better fix from Richard.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25998 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-07-30 07:31:48 +00:00
parent 3457b4f808
commit 24969f2a87

View 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();