From: Richard Heck Date: Sun, 21 Feb 2016 03:18:03 +0000 (-0500) Subject: Whoops on the last commit. This is the right patch. X-Git-Tag: 2.2.0rc1~129 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=efd1af6789ff893d4b2446bb07cd10a3f72276d4;p=features.git Whoops on the last commit. This is the right patch. --- diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index f76f7248a2..e4dff1d981 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -3039,9 +3039,9 @@ void GuiDocument::paramsToDialog() biblioChanged_ = false; // indices - // We may be called when there is no BufferView and so no Buffer, - // e.g., when the last view has just been closed. - bool const isReadOnly = buffer() ? buffer().isReadonly() : false; + // We may be called when there is no Buffer, e.g., when + // the last view has just been closed. + bool const isReadOnly = isBufferAvailable() ? buffer().isReadonly() : false; indicesModule->update(bp_, isReadOnly); // language & quotes