]> git.lyx.org Git - features.git/commitdiff
* Remove GuiView->BufferView->GuiView indirection.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 27 Sep 2009 10:36:24 +0000 (10:36 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 27 Sep 2009 10:36:24 +0000 (10:36 +0000)
* 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

index 575933fa471182b44f672654fa177a2a26123f3d..78416da3cec5799eaa8e69e726473ace292d55b9 100644 (file)
@@ -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") {