X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FAction.cpp;h=c048729970d449da4f22c457a580ee980bd485f9;hb=ba76bf5eb85db5a10839fccee3430d906d3f7b70;hp=2d4fc2c4c30acb5909732651a6837025424eb410;hpb=ff189f6c706d7e79778c7e241478a1dbe07b96a1;p=lyx.git diff --git a/src/frontends/qt4/Action.cpp b/src/frontends/qt4/Action.cpp index 2d4fc2c4c3..c048729970 100644 --- a/src/frontends/qt4/Action.cpp +++ b/src/frontends/qt4/Action.cpp @@ -12,9 +12,7 @@ #include "Action.h" -#include "frontends/LyXView.h" - -#include "debug.h" +#include "support/debug.h" #include "FuncRequest.h" #include "FuncStatus.h" #include "GuiView.h" @@ -32,10 +30,8 @@ Action::Action(GuiView & lyxView, QIcon const & icon, QString const & tooltip) : QAction(&lyxView), func_(func), lyxView_(lyxView) { -#if QT_VERSION >= 0x040200 // only Qt/Mac handles that setMenuRole(NoRole); -#endif setIcon(icon); setText(text); setToolTip(tooltip); @@ -65,9 +61,9 @@ void Action::update() void Action::action() { - // LYXERR(Debug::ACTION) << "calling LyXFunc::dispatch: func_: " - // "\n"; - lyxView_.dispatch(func_); + //LYXERR(Debug::ACTION, "calling LyXFunc::dispatch: func_: "); + theLyXFunc().setLyXView(&lyxView_); + lyx::dispatch(func_); triggered(this); }