From a74e1b096ce9de1a8783143698e2979426d7c220 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 27 Sep 2009 10:36:24 +0000 Subject: [PATCH] * Remove GuiView->BufferView->GuiView indirection. * add a FIXME to LFUN_DIALOG_UPDATE git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31473 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 575933fa47..78416da3ce 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -2468,7 +2468,7 @@ bool GuiView::dispatch(FuncRequest const & cmd) if (buffer) setBuffer(buffer); else - bv->cursor().message(_("Document not loaded")); + message(_("Document not loaded")); } break; @@ -2574,6 +2574,8 @@ bool GuiView::dispatch(FuncRequest const & cmd) // Can only update a dialog connected to an existing inset if (!inset) break; + // FIXME: get rid of this indirection; GuiView ask the inset + // if he is kind enough to update itself... FuncRequest fr(LFUN_INSET_DIALOG_UPDATE, cmd.argument()); inset->dispatch(currentBufferView()->cursor(), fr); } else if (name == "paragraph") { -- 2.39.2