[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - wsd/ClientSession.cpp
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Nov 8 14:06:03 UTC 2018
wsd/ClientSession.cpp | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 9655ed9274c536defb185ff475233ef73de94fe8
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Thu Nov 8 02:35:44 2018 +0000
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Nov 8 15:05:34 2018 +0100
Convert-to - cleanup after ourselves.
Change-Id: I85de9721ac1b33d053b59fc36fc7c307206a0888
Reviewed-on: https://gerrit.libreoffice.org/63056
Reviewed-by: Tor Lillqvist <tml at collabora.com>
Tested-by: Tor Lillqvist <tml at collabora.com>
diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp
index 4753db07c..864863288 100644
--- a/wsd/ClientSession.cpp
+++ b/wsd/ClientSession.cpp
@@ -846,6 +846,11 @@ bool ClientSession::handleKitToClientMessage(const char* buffer, const int lengt
// Now terminate.
docBroker->stop("Finished saveas handler.");
+
+ // Remove file and directory
+ Poco::Path path = docBroker->getDocKey();
+ Poco::File(path).remove();
+ Poco::File(path.makeParent()).remove();
}
return true;
More information about the Libreoffice-commits
mailing list