commit efd1af6789ff893d4b2446bb07cd10a3f72276d4
Author: Richard Heck <[email protected]>
Date:   Sat Feb 20 22:18:03 2016 -0500

    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 f76f724..e4dff1d 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

Reply via email to