From 70ab7f25851617317dc4959adc49b985480f96e1 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Thu, 20 Aug 2009 09:17:10 +0000 Subject: [PATCH] branch: Fix bug #6162: Crash after close window with master/child. A copy-paste error. GuiView::disconnectBuffer() was exactly the same as GuiView::disconnectBufferView(). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31165 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index c3aa1efb47..447a6aa9ff 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1076,7 +1076,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); }