Fix bug #6162: Crash after close window with master/child.

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
This commit is contained in:
Vincent van Ravesteijn 2009-08-19 20:55:02 +00:00
parent c863a953b2
commit 66dd3db8bc

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