Force a paragraph update after lyxserver communication (part of bug #6871)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37851 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-03-04 21:57:42 +00:00
parent b8836fcd19
commit 299745b635
2 changed files with 2 additions and 0 deletions

View File

@ -1175,6 +1175,7 @@ void Server::callback(string const & msg)
FuncRequest const fr(lyxaction.lookupFunc(cmd), arg);
DispatchResult dr;
theApp()->dispatch(fr, dr);
theApp()->dispatch(FuncRequest(LFUN_PARAGRAPH_UPDATE));
string const rval = to_utf8(dr.message());
// all commands produce an INFO or ERROR message

View File

@ -143,6 +143,7 @@ void ServerSocket::dataCallback(int fd)
string const cmd = line.substr(pos + 1);
DispatchResult dr;
theApp()->dispatch(lyxaction.lookupFunc(cmd), dr);
theApp()->dispatch(FuncRequest(LFUN_PARAGRAPH_UPDATE));
string const rval = to_utf8(dr.message());
if (dr.error())
client->writeln("ERROR:" + cmd + ':' + rval);