]> 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>
Sun, 15 Apr 2012 22:19:22 +0000 (00:19 +0200)
commit482355e7b4781cc3f9951861bd4fc655d95fa9c4
treefc2b53f3e662a3609c07be3083989b7147c85eaa
parentfe47997587e756a881702d22daccb63283d93fb8
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 update the view, but does not return any result, while
GuiApplication::dispatch(FuncRequest const &, DispatchResult &),
which is also called by the former, does not update the view.
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.

(cherry picked from commit ea3154184833f4f2426eb2a956878e83ddd822d9)
src/FuncRequest.h
src/Server.cpp
src/ServerSocket.cpp
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiApplication.h
status.20x