Allow reload if buffer is externally modified.

Follow-up of 2df82c4a44.
This commit is contained in:
Pavel Sanda 2018-03-02 20:48:08 +01:00
parent e97a82b7ff
commit 3d6b8c0abb

View File

@ -1879,7 +1879,8 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
case LFUN_BUFFER_RELOAD: case LFUN_BUFFER_RELOAD:
enable = doc_buffer && !doc_buffer->isUnnamed() enable = doc_buffer && !doc_buffer->isUnnamed()
&& doc_buffer->fileName().exists() && !doc_buffer->isClean(); && doc_buffer->fileName().exists()
&& (!doc_buffer->isClean() || doc_buffer->notifiesExternalModification());
break; break;
case LFUN_BUFFER_CHILD_OPEN: case LFUN_BUFFER_CHILD_OPEN: