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
This commit is contained in:
Richard Heck 2007-06-04 14:09:51 +00:00
parent 98fad8e694
commit 558f51f5e7

View File

@ -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);