]> git.lyx.org Git - lyx.git/commitdiff
fix crash on exit.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 24 Oct 2006 07:55:46 +0000 (07:55 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 24 Oct 2006 07:55:46 +0000 (07:55 +0000)
* LyXView::setBuffer(): returns early if quitting.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15521 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/LyXView.C

index ff66b0364cbe34b571f1d5b3f841c299ff2a7f58..e700434499d257f6b6c8b94c171f1681bee7cb96 100644 (file)
@@ -121,6 +121,9 @@ void LyXView::setBuffer(Buffer * b)
                connectBuffer(*work_area_->bufferView().buffer());
        }
 
+       if (quitting)
+               return;
+
        updateMenubar();
        updateToolbars();
        updateLayoutChoice();