From 167b6dc0f2e2cea28b63885100ded20cf6290614 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 29 Jan 2010 12:01:17 +0000 Subject: [PATCH] Make LFUN_HELP_OPEN open the document in read-only mode. This fixes problems where Mac users can modify the documentation by mistake. Note that it is still possible to open those document by explicit path or to toggle off the read-only status (but this is only useful to documentors anyway). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33260 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 1b1daf82d5..030668f2e9 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -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"); } -- 2.39.2