]> git.lyx.org Git - lyx.git/blobdiff - src/Server.cpp
de.po: some translations
[lyx.git] / src / Server.cpp
index b6ae8d8b1fece30f7e71df4dea4b5213421e9c84..1e673e6f8708e9fa1701b74dc0572dcc0d271c42 100644 (file)
@@ -1015,7 +1015,8 @@ bool LyXComm::loadFilesInOtherInstance()
                        break;
                string const cmd = "LYXCMD:pipe:file-open:" +
                                        fname.absFileName() + '\n';
-               ::write(pipefd, cmd.c_str(), cmd.length());
+               if (::write(pipefd, cmd.c_str(), cmd.length()) < 0)
+                       LYXERR0("Cannot write to pipe!");
                ::close(pipefd);
                ++loaded_files;
                it = theFilesToLoad().erase(it);
@@ -1172,10 +1173,10 @@ void Server::callback(string const & msg)
                        // connect to the lyxfunc in the single GuiView we
                        // support currently. (Lgb)
 
-                       FuncRequest const fr(lyxaction.lookupFunc(cmd), arg);
+                       FuncRequest fr(lyxaction.lookupFunc(cmd), arg);
+                       fr.setOrigin(FuncRequest::LYXSERVER);
                        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