]> git.lyx.org Git - features.git/commit
Fix bugs #6871 and #8119.
authorEnrico Forestieri <forenr@lyx.org>
Fri, 13 Apr 2012 00:57:25 +0000 (02:57 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Fri, 13 Apr 2012 00:57:25 +0000 (02:57 +0200)
commitea3154184833f4f2426eb2a956878e83ddd822d9
treec5e6765e5bcec5cec4b70be16a28766cb7e03cab
parentd07f9eec20c8709b648a494586d4b03f75cfef47
Fix bugs #6871 and #8119.

Both bugs above were due to a missing screen update. This patch
updates the current view after dispatching a lyxserver command
and thus solves both.

The patch is quite strightforward and the only difficulty was due
to the fact that the lyxserver needs the result of the dispatched
command. Now, GuiApplication::dispatch(FuncRequest const &) does
right this, but does not return the result, while
GuiApplication::dispatch(FuncRequest const &, DispatchResult &)
is called by the former but does not return the result. So, I
split the first one, isolating the code performing the update,
such that the second one can also update the current view when
the caller is the lyx server. When the action is initiated by
anything different from the lyx server, the behavior is unchanged.
src/FuncRequest.h
src/Server.cpp
src/ServerSocket.cpp
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiApplication.h