mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
98fad8e694
commit
558f51f5e7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user