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
This commit is contained in:
Vincent van Ravesteijn 2009-08-20 09:17:10 +00:00
parent 8671278ac0
commit 70ab7f2585

View File

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