]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Action.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / Action.cpp
index 16996b410ffedc779e225b5cf01a134ea771c142..006cf3a9fa3055dbb09bfe08eae5785811274386 100644 (file)
 
 #include "Action.h"
 
-#include "debug.h"
 #include "FuncRequest.h"
 #include "FuncStatus.h"
 #include "GuiView.h"
 #include "LyXFunc.h"
 #include "qt_helpers.h"
 
+#include "support/debug.h"
 #include "support/lstrings.h"
 
 namespace lyx {
@@ -62,7 +62,8 @@ void Action::update()
 void Action::action()
 {
        //LYXERR(Debug::ACTION, "calling LyXFunc::dispatch: func_: ");
-       lyxView_.dispatch(func_);
+       theLyXFunc().setLyXView(&lyxView_);
+       lyx::dispatch(func_);
        triggered(this);
 }