]> git.lyx.org Git - features.git/commitdiff
Fix bug 3701: Allow buffer dependent dialogs to remain open when buffer is closed...
authorRichard Heck <rgheck@comcast.net>
Mon, 4 Jun 2007 14:09:51 +0000 (14:09 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 4 Jun 2007 14:09:51 +0000 (14:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18651 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/LyXView.cpp

index 8086b69f656686133afd04fc0c81e0716d405b71..c3a3739001ca054f1e3afa8c1eace01c443a116f 100644 (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);