]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiView.cpp
Fix bug #6162: Crash after close window with master/child.
[features.git] / 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);
 }