]> git.lyx.org Git - lyx.git/blobdiff - src/ServerSocket.cpp
de.po: some translations
[lyx.git] / src / ServerSocket.cpp
index 12386af838687a1aef86a4edf1e1d407516b1998..7b9d6df5af71c81d885c36c29045127a2964ae47 100644 (file)
@@ -40,7 +40,7 @@
 using namespace std;
 using namespace lyx::support;
 
-using boost::shared_ptr;
+
 
 namespace lyx {
 
@@ -141,8 +141,10 @@ void ServerSocket::dataCallback(int fd)
                string const key = line.substr(0, pos);
                if (key == "LYXCMD") {
                        string const cmd = line.substr(pos + 1);
+                       FuncRequest fr(lyxaction.lookupFunc(cmd));
+                       fr.setOrigin(FuncRequest::LYXSERVER);
                        DispatchResult dr;
-                       theApp()->dispatch(lyxaction.lookupFunc(cmd), dr);
+                       theApp()->dispatch(fr, dr);
                        string const rval = to_utf8(dr.message());
                        if (dr.error())
                                client->writeln("ERROR:" + cmd + ':' + rval);