]> git.lyx.org Git - features.git/commitdiff
Allow reload if buffer is externally modified.
authorPavel Sanda <sanda@lyx.org>
Fri, 2 Mar 2018 19:48:08 +0000 (20:48 +0100)
committerPavel Sanda <sanda@lyx.org>
Fri, 2 Mar 2018 19:49:48 +0000 (20:49 +0100)
Follow-up of 2df82c4a44b7.

src/frontends/qt4/GuiView.cpp

index 361439bee02f5057d2723cfffcf9d3b4c09f61a6..56a2e73d53220895d5f3b927d54e769abd24f263 100644 (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: