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 64d1751f2f
commit 9cdae51688

View File

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