mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
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:
parent
92f491b3f8
commit
0e2a2da232
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user