]> git.lyx.org Git - lyx.git/blobdiff - src/Server.cpp
tex2lyx/text.cpp: fix 2 typos
[lyx.git] / src / Server.cpp
index ac26b9443e629386a6b1adb041d648dd6e7a5fee..fed89ace5b0ce4813f65745133dd79bb55449667 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);
@@ -1175,6 +1176,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