From 2e56c97bcc7d9c892febd753352df1cc49835f97 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 24 Oct 2006 07:55:46 +0000 Subject: [PATCH] fix crash on exit. * 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontends/LyXView.C b/src/frontends/LyXView.C index ff66b0364c..e700434499 100644 --- a/src/frontends/LyXView.C +++ b/src/frontends/LyXView.C @@ -121,6 +121,9 @@ void LyXView::setBuffer(Buffer * b) connectBuffer(*work_area_->bufferView().buffer()); } + if (quitting) + return; + updateMenubar(); updateToolbars(); updateLayoutChoice(); -- 2.39.2