From 0e2a2da2325be3ea78506e27a3f907b44d3cb668 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Wed, 23 Dec 2009 12:42:14 +0000 Subject: [PATCH] isExternallyModified needs file existence. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32617 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index cbb0e38fd6..62e991d340 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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())); -- 2.39.2