From efd1af6789ff893d4b2446bb07cd10a3f72276d4 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 20 Feb 2016 22:18:03 -0500 Subject: [PATCH] Whoops on the last commit. This is the right patch. --- src/frontends/qt4/GuiDocument.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2