]> git.lyx.org Git - features.git/commitdiff
Fix bug #6162: Crash after close window with master/child.
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 19 Aug 2009 20:55:02 +0000 (20:55 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 19 Aug 2009 20:55:02 +0000 (20:55 +0000)
The previous fix was nonsense. It appeared to be a shameful copy-paste error. GuiView::disconnectBufferView() was exactly the same as GuiView::disconnectBuffer().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31150 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 762af8bcc0d4f79659b0a3262065d1e874304955..b482b08a0595298c335ad6d8833bf73b3d3c0020 100644 (file)
@@ -1082,7 +1082,7 @@ void GuiView::connectBuffer(Buffer & buf)
 void GuiView::disconnectBuffer()
 {
        if (d.current_work_area_)
-               d.current_work_area_->bufferView().setGuiDelegate(0);
+               d.current_work_area_->bufferView().buffer().setGuiDelegate(0);
 }