From: Vincent van Ravesteijn Date: Fri, 29 Oct 2010 19:07:41 +0000 (+0000) Subject: Compile fix in case DEVEL_VERSION is defined. X-Git-Tag: 2.0.0~2179 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e703e02db59f9e6e1836c70bc94deff8ba5eb01c;p=features.git 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 --- 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; }