[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-2' - kit/ChildSession.cpp
Jan Holesovsky
kendy at collabora.com
Thu May 10 09:53:55 UTC 2018
kit/ChildSession.cpp | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
New commits:
commit a9422c15829177d0f722f398a4e067fcf41bdc54
Author: Jan Holesovsky <kendy at 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 <vmiklos at collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>
Reviewed-on: https://gerrit.libreoffice.org/54073
Reviewed-by: Aron Budea <aron.budea at collabora.com>
Tested-by: Aron Budea <aron.budea at collabora.com>
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);
}
More information about the Libreoffice-commits
mailing list