]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.C
fix compilation bug
[lyx.git] / src / BufferView_pimpl.C
index 4574489f56f3dce52505a5d674ed3675e60a34c2..34b5a478e357034a93c92d4a0ff62c214eb557a7 100644 (file)
@@ -170,7 +170,9 @@ void BufferView::Pimpl::buffer(Buffer * b)
        // set current buffer
        buffer_ = b;
 
-       if (bufferlist.getState() == BufferList::CLOSING) return;
+       // if we're quitting lyx, don't bother updating stuff 
+       if (quitting)
+               return; 
 
        // if we are closing the buffer, use the first buffer as current
        if (!buffer_) {