From: Abdelrazak Younes Date: Sun, 27 Sep 2009 10:36:24 +0000 (+0000) Subject: * Remove GuiView->BufferView->GuiView indirection. X-Git-Tag: 2.0.0~5440 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a74e1b096ce9de1a8783143698e2979426d7c220;p=features.git * 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 --- 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") {