]> git.lyx.org Git - features.git/commitdiff
Whoops on the last commit. This is the right patch.
authorRichard Heck <rgheck@lyx.org>
Sun, 21 Feb 2016 03:18:03 +0000 (22:18 -0500)
committerRichard Heck <rgheck@lyx.org>
Sun, 21 Feb 2016 03:19:03 +0000 (22:19 -0500)
src/frontends/qt4/GuiDocument.cpp

index f76f7248a266af31f2ff38d10de23eedf796ecd9..e4dff1d9818a21701227d745a1a58418572e3775 100644 (file)
@@ -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