kit/ChildSession.cpp |   19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)

New commits:
commit a43da4fa39ba210783d4d85d68e6b7f75b9d4672
Author: Jan Holesovsky <ke...@collabora.com>
Date:   Thu May 10 09:18:05 2018 +0200

    Revert "kit: use NoFileSync flag for save"
    
    Turned out this might corrupt .ods files...
    
    This reverts commit 3a8f847811c24a9d4b73a515b0506732d9bc5c6c.
    
    Change-Id: I554c0697352b093acbfbfd5474f1429a21ea9839
    Reviewed-on: https://gerrit.libreoffice.org/54061
    Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk>
    Tested-by: Miklos Vajna <vmik...@collabora.co.uk>

diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp
index e294b03da..1ba5a08ef 100644
--- a/kit/ChildSession.cpp
+++ b/kit/ChildSession.cpp
@@ -952,25 +952,8 @@ bool ChildSession::unoCommand(const char* /*buffer*/, int 
/*length*/, const std:
     }
     else
     {
-        std::string arguments;
-        if (tokens[1] == ".uno:Save" && tokens[2] == "{}")
-        {
-            // Save and no arguments, provide our default.
-            std::ostringstream oss;
-            oss << "{"
-                << "\"NoFileSync\":"
-                << "{"
-                << "\"type\":\"boolean\","
-                << "\"value\":true"
-                << "}"
-                << "}";
-            arguments = oss.str();
-        }
-        else
-            arguments = Poco::cat(std::string(" "), tokens.begin() + 2, 
tokens.end());
-
         getLOKitDocument()->postUnoCommand(tokens[1].c_str(),
-                                       arguments.c_str(),
+                                       Poco::cat(std::string(" "), 
tokens.begin() + 2, tokens.end()).c_str(),
                                        bNotify);
     }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to