isExternallyModified needs file existence.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32617 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-12-23 12:42:14 +00:00
parent 92f491b3f8
commit 0e2a2da232

View File

@ -2435,7 +2435,8 @@ void GuiView::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()));