From e703e02db59f9e6e1836c70bc94deff8ba5eb01c Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Fri, 29 Oct 2010 19:07:41 +0000 Subject: [PATCH] Compile fix in case DEVEL_VERSION is defined. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35919 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 15d9f58c16..5b9deb8d9a 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -1352,9 +1352,12 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr) current_view_->message(bformat(_("Opening help file %1$s..."), makeDisplayPath(fname.absFileName()))); Buffer * buf = current_view_->loadDocument(fname, false); + #ifndef DEVEL_VERSION if (buf) buf->setReadonly(true); +#else + buf; #endif break; } -- 2.39.2