]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiApplication.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiApplication.cpp
index 1b1daf82d5e164607e4bd19af8edbdf2f952a841..030668f2e94c275b728e5d23eae09e9eb65722e0 100644 (file)
@@ -1020,6 +1020,7 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                Buffer * buf = current_view_->loadDocument(fname, false);
                if (buf) {
                        current_view_->setBuffer(buf);
+                       buf->setReadonly(true);
                        buf->updateLabels();
                        buf->errors("Parse");
                }