]> git.lyx.org Git - features.git/commitdiff
Compile fix in case DEVEL_VERSION is defined.
authorVincent van Ravesteijn <vfr@lyx.org>
Fri, 29 Oct 2010 19:07:41 +0000 (19:07 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Fri, 29 Oct 2010 19:07:41 +0000 (19:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35919 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiApplication.cpp

index 15d9f58c16bcf997b36b8efea3d773b8b4cdc42d..5b9deb8d9a5dcbf6940ccc1478edd32ab009784e 100644 (file)
@@ -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;
        }