Backport r32617, no status entry needed, this was new in 1.6.6.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32618 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-12-23 12:48:36 +00:00
parent 9d36bfcfd5
commit c6ddbaf8d2

View File

@ -1904,7 +1904,8 @@ void LyXFunc::checkExternallyModifiedBuffers()
BufferList::iterator bit = theBufferList().begin();
BufferList::iterator const bend = theBufferList().end();
for (; bit != bend; ++bit) {
if ((*bit)->isExternallyModified(Buffer::checksum_method)) {
if ((*bit)->fileName().exists()
&& (*bit)->isExternallyModified(Buffer::checksum_method)) {
docstring text = bformat(_("Document \n%1$s\n has been externally modified."
" Reload now? Any local changes will be lost."),
from_utf8((*bit)->absFileName()));