From 558f51f5e76600db39845e4b8349b4623d0f3e11 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 4 Jun 2007 14:09:51 +0000 Subject: [PATCH] Fix bug 3701: Allow buffer dependent dialogs to remain open when buffer is closed, so long as there is still an open buffer. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18651 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/LyXView.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/frontends/LyXView.cpp b/src/frontends/LyXView.cpp index 8086b69f65..c3a3739001 100644 --- a/src/frontends/LyXView.cpp +++ b/src/frontends/LyXView.cpp @@ -20,8 +20,7 @@ #include "Gui.h" #include "Buffer.h" -//FIXME Bug 3701 -//#include "BufferList.h" +#include "BufferList.h" #include "BufferParams.h" #include "BufferView.h" #include "bufferview_funcs.h" @@ -131,8 +130,7 @@ void LyXView::setBuffer(Buffer * b) if (work_area_->bufferView().buffer()) disconnectBuffer(); - //FIXME Bug 3701 - if (!b) // && theBufferList().empty() + if (!b && theBufferList().empty()) getDialogs().hideBufferDependent(); work_area_->bufferView().setBuffer(b); -- 2.39.2